.Topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: -0.04em;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* Verhindert, dass der transparente Header Klicks blockiert */
    background-color: #26262b;
}

.brand-logo {
    pointer-events: auto; /* Stellt Klickbarkeit für das Logo wieder her */
    display: flex;
    align-items: center;
    gap: 10px;
}

.Greetbox {
    font-size: 0.7em;
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    padding: 20px;
    padding-top: 100px; /* Platz für die fixe Topbar */
}

/* 2. Container Cards (Login & Register) */
.auth-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* 3. Headings */
h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.025em;
}

/* 4. Form Layout & Inputs */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Input Focus States */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Styling for Select Dropdown */
select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

select option {
    background-color: #0f172a;
    color: #f8fafc;
}

/* Placeholder Styling */
::placeholder {
    color: #64748b;
    opacity: 1;
}

/* 5. Primary Submit Button */
input[type="submit"] {
    margin-top: 8px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #0284c7;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

input[type="submit"]:hover {
    background-color: #0369a1;
}

input[type="submit"]:active {
    transform: scale(0.98);
}

/* 6. Toggle Button (Switch between Login & Register) */
.toggle-btn {
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s ease;
}

.toggle-btn:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* 7. Responsive Adjustments */
@media (max-width: 600px) {
    .Topbar {
        padding: 14px 18px;
        font-size: 1.4em;
    }

    .Greetbox {
        font-size: 0.6em;
    }

    body {
        padding: 12px;
        padding-top: 80px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
        max-width: 100%;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    select {
        padding: 12px 14px;
        font-size: 16px; /* verhindert Auto-Zoom bei Fokus auf iOS */
    }

    input[type="submit"] {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .Topbar {
        font-size: 1.15em;
        padding: 12px 14px;
    }

    .auth-card {
        padding: 22px 16px;
    }
}