/* Anmelden / Registrieren — V3-Optik */

.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-page .site-header {
    position: relative;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
}

.auth-page .site-header__inner {
    grid-template-columns: 1fr auto;
}

.auth-page .site-nav {
    display: none;
}

.auth-back {
    justify-self: end;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #5c5c6f;
    transition: color 0.2s ease;
}

.auth-back:hover {
    color: #121212;
}

.auth-main {
    position: relative;
    isolation: isolate;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px var(--content-padding) 64px;
}

.auth-main::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    top: 0;
    bottom: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            #fafafa 0%,
            transparent 12%,
            transparent 88%,
            #fafafa 100%
        ),
        radial-gradient(
            ellipse 120% 80% at 50% 30%,
            #e8e0f9 0%,
            #f0ebfb 40%,
            #fafafa 70%
        );
}

.auth-main__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-main__title {
    font-family: 'Inter Display', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    color: #121212;
    margin-bottom: 8px;
}

.auth-main__sub {
    text-align: center;
    font-size: 0.9375rem;
    color: #5c5c6f;
    line-height: 1.5;
    margin-bottom: 28px;
}

.auth-msg {
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 12px;
    text-align: center;
}

.auth-msg[hidden] {
    display: none !important;
}

.auth-shell {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(18, 18, 18, 0.08);
    box-shadow: 0 8px 40px rgba(18, 18, 18, 0.06);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    padding: 8px;
    gap: 6px;
    background: #f4f4f7;
    border-bottom: 1px solid rgba(18, 18, 18, 0.06);
}

.auth-tab {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5c5c6f;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab:hover {
    color: #121212;
}

.auth-tab[aria-selected='true'] {
    background: #fff;
    color: #121212;
    box-shadow: 0 2px 8px rgba(18, 18, 18, 0.08);
}

.auth-tab:focus-visible {
    outline: 2px solid #1b00ff;
    outline-offset: 2px;
}

.auth-panel {
    padding: 28px 28px 32px;
}

.auth-panel[hidden] {
    display: none !important;
}

.auth-panel label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #3d3d4a;
    margin-bottom: 8px;
}

.auth-panel input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #121212;
    background: #fafafa;
    border: 1px solid rgba(18, 18, 18, 0.12);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-panel input::placeholder {
    color: #9a9aad;
}

.auth-panel input:focus {
    outline: none;
    border-color: #1b00ff;
    box-shadow: 0 0 0 3px rgba(27, 0, 255, 0.12);
    background: #fff;
}

.auth-panel button[type='submit'] {
    width: 100%;
    margin-top: 8px;
    padding: 14px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #121212;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-panel button[type='submit']:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.auth-panel button[type='submit']:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 520px) {
    .auth-page .site-header__inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .auth-back {
        justify-self: start;
    }

    .auth-panel {
        padding: 22px 20px 28px;
    }
}
