.auth-page {
    display: flex;
    flex-direction: column;
}

.auth-page .auth-topbar {
    position: static;
    background: #fff;
    backdrop-filter: none;
    border-color: var(--color-border);
}

.auth-page .auth-topbar__inner {
    width: var(--container-width);
    min-height: 88px;
    padding: 1rem 0;
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
}

.auth-page .auth-topbar__brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.auth-page .auth-topbar__nav {
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-page .auth-topbar__actions {
    width: auto;
}

.auth-page .auth-topbar__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.auth-page .button-ghost {
    border-color: var(--color-border);
    background: #fff;
    font-size: 0.85rem;
}

.auth-page .auth-shell {
    width: var(--container-width);
    margin: 4.5rem auto 3.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 450px);
    align-items: start;
    gap: clamp(2rem, 7vw, 6rem);
    flex: 1;
}

.auth-page .auth-panel {
    min-width: 0;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.auth-page .auth-panel--story {
    padding: 1.75rem 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-page .eyebrow {
    margin: 0 0 1rem;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-page .auth-panel h1 {
    font-size: clamp(2.25rem, 4.2vw, 3.25rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.045em;
    margin-bottom: 1.25rem;
}

.auth-page .auth-lead {
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.auth-page .auth-feature-list {
    gap: 0;
}

.auth-page .auth-feature-list article {
    padding: 1.25rem 0;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
}

.auth-page .auth-feature-list strong {
    font-size: 0.95rem;
}

.auth-page .auth-feature-list p {
    font-size: 0.9rem;
}

.auth-page .button {
    min-height: 44px;
    line-height: 1.4;
}

.auth-page .button-social {
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: none;
}

.auth-page .button-social--google {
    background: #fff;
    border-color: var(--color-border);
}

.auth-page .button-social--google:hover {
    background: var(--color-surface);
}

.auth-page .button-social--apple {
    background: var(--color-ink);
    border-color: var(--color-ink);
}

.auth-page .auth-social__divider {
    margin: 0.35rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.auth-page .auth-social__divider::before {
    border-color: var(--color-border);
}

.auth-page .auth-social__divider span {
    background: #fff;
}

.auth-page .form-row {
    gap: 0.5rem;
    margin-bottom: 1.15rem;
    font-size: 0.85rem;
}

.auth-page .form-row input:not([type="checkbox"]):not([type="radio"]) {
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border-color: var(--color-border);
    background: #fff;
    font-size: 1rem;
}

.auth-page .form-row input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(36, 92, 229, 0.12);
}

.auth-page .form-row input:disabled,
.auth-page .form-row input[readonly] {
    background: var(--color-surface);
    color: var(--color-muted);
}

.auth-page form > .button-primary {
    width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
}

.auth-page .auth-footnote {
    text-align: center;
    font-size: 0.82rem;
    margin-top: 1.25rem;
}

.auth-page .auth-footnote a {
    color: var(--color-primary);
    text-underline-offset: 3px;
}

.auth-page .auth-footer-nav {
    width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--color-border);
    justify-content: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.auth-page .auth-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.auth-page .alert,
.auth-page .auth-social-pending {
    border-radius: 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .auth-page .auth-topbar__nav {
        display: none;
    }

    .auth-page .auth-topbar__inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .auth-page .auth-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
        gap: 1.5rem;
        margin-block: 2.5rem;
    }

    .auth-page .auth-panel--story {
        padding: 0;
    }

    .auth-page .auth-lead {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    .auth-page .auth-feature-list {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-page .auth-topbar__inner {
        min-height: 76px;
        gap: 0.75rem;
    }

    .auth-page .brand-lockup__name {
        font-size: 22px;
    }

    .auth-page .brand-lockup__mark,
    .auth-page .brand-lockup__mark-shell {
        width: 28px;
        height: 28px;
    }

    .auth-page .auth-topbar__actions .button {
        padding: 0.65rem 0.75rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .auth-page .auth-shell {
        margin-block: 2rem;
    }

    .auth-page .auth-panel--form {
        padding: 1.25rem;
    }

    .auth-page .auth-panel h1 {
        margin-bottom: 0.75rem;
    }

    .auth-page .eyebrow {
        margin-bottom: 0.75rem;
    }
}
