:root {
    --auth-ink: #0f172a;
    --auth-muted: #475569;
    --auth-border: #cbd5e1;
    --auth-surface: #fff;
    --auth-accent: #0f766e;
    --auth-danger: #991b1b;
    --auth-danger-bg: #fef2f2;
    --auth-danger-border: #fecaca
}

.auth-page {
    width: 100vw;
    min-height: calc(100vh - 72px);
    margin-left: calc(50% - 50vw);
    padding: clamp(2.5rem, 6vw, 5.5rem) 1.25rem;
    background: radial-gradient(circle at 15% 15%, rgba(16, 185, 129, .2), transparent 28rem), linear-gradient(145deg, #07111f, #0b1e34 55%, #102a43);
    color: var(--auth-ink)
}

.auth-grid {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    gap: 3rem;
    align-items: center
}

.auth-grid--single {
    width: min(32rem, 100%)
}

.auth-hero {
    color: #f8fafc
}

.auth-eyebrow {
    margin: 0 0 1rem;
    color: #5eead4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .75rem
}

.auth-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800
}

.auth-hero p:not(.auth-eyebrow) {
    max-width: 42rem;
    margin: 1.5rem 0 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75
}

.auth-accent {
    color: #5eead4
}

.auth-card {
    width: min(100%, 29rem);
    margin: auto;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border: 1px solid #e2e8f0;
    border-radius: 1.75rem;
    background: var(--auth-surface);
    color: var(--auth-ink);
    color-scheme: light;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .42)
}

.auth-card--wide {
    width: min(100%, 32rem)
}

.auth-card--center {
    text-align: center
}

.auth-logo {
    display: block;
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18)
}

.auth-title {
    margin: .9rem 0 0;
    color: var(--auth-ink);
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1.2;
    font-weight: 800
}

.auth-subtitle {
    margin: .65rem 0 0;
    color: var(--auth-muted);
    text-align: center;
    font-size: .92rem;
    line-height: 1.6
}

.auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem
}

.auth-field {
    display: grid;
    gap: .4rem;
    text-align: left
}

.auth-label {
    color: #334155;
    font-size: .86rem;
    line-height: 1.35;
    font-weight: 700
}

.auth-input {
    width: 100%;
    min-height: 2.9rem;
    padding: .75rem .9rem;
    border: 1px solid var(--auth-border);
    border-radius: .85rem;
    outline: none;
    background: #fff !important;
    color: var(--auth-ink) !important;
    caret-color: var(--auth-ink);
    font: inherit;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .16s ease, box-shadow .16s ease
}

.auth-input::placeholder {
    color: #64748b !important;
    opacity: 1
}

.auth-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .16)
}

.auth-input:-webkit-autofill, .auth-input:-webkit-autofill:hover, .auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-ink) !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    caret-color: var(--auth-ink)
}

.auth-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    color: #334155;
    font-size: .8rem
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #334155;
    cursor: pointer
}

.auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-accent)
}

.auth-button, .auth-provider {
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--auth-ink);
    border-radius: .9rem;
    padding: .8rem 1rem;
    background: var(--auth-ink);
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease
}

.auth-button:hover, .auth-provider:hover {
    background: #1e293b;
    transform: translateY(-1px)
}

.auth-provider span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem
}

.auth-provider-list {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem
}

.auth-disclosure {
    margin-top: 1rem;
    padding-top: .95rem;
    border-top: 1px solid #e2e8f0
}

.auth-disclosure summary {
    list-style: none;
    color: #334155;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer
}

.auth-disclosure summary::-webkit-details-marker {
    display: none
}

.auth-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    margin-top: .8rem;
    color: var(--auth-muted);
    font-size: .78rem
}

.auth-link {
    color: #334155;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px
}

.auth-link:hover {
    color: var(--auth-accent)
}

.auth-note {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    background: #f1f5f9;
    color: #334155;
    font-size: .78rem;
    line-height: 1.55;
    text-align: left
}

.auth-note p {
    display: flex;
    gap: .65rem;
    margin: 0
}

.auth-note p + p {
    margin-top: .75rem
}

.auth-alert, .validation-summary-errors {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border: 1px solid var(--auth-danger-border);
    border-radius: .85rem;
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
    font-size: .85rem;
    line-height: 1.45;
    text-align: left
}

.validation-summary-valid, .field-validation-valid {
    display: none
}

.field-validation-error {
    color: #b91c1c;
    font-size: .75rem;
    line-height: 1.35
}

.auth-status-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto;
    border-radius: 1rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 1.35rem
}

.auth-status-icon--danger {
    background: #fef2f2;
    color: #b91c1c
}

.auth-copy {
    margin: 1rem 0 0;
    color: var(--auth-muted);
    font-size: .92rem;
    line-height: 1.65
}

.auth-copy strong {
    color: #1e293b
}

.auth-spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    border: 4px solid #cbd5e1;
    border-top-color: #0f766e;
    border-radius: 999px;
    animation: auth-spin .8s linear infinite
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .75rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.auth-kicker--danger {
    background: #fef2f2;
    color: #991b1b
}

.auth-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem
}

.auth-actions .auth-button {
    width: auto;
    min-width: 10rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.auth-secondary {
    background: #fff;
    color: #1e293b;
    border-color: #cbd5e1
}

.auth-secondary:hover {
    background: #f8fafc
}

.auth-muted-panel {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: .85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: .82rem;
    line-height: 1.55;
    text-align: left
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg)
    }
}

@media (min-width: 960px) {
    .auth-grid:not(.auth-grid--single) {
        grid-template-columns:1.08fr .92fr
    }

    .auth-card:not(.auth-card--center) {
        margin-left: auto
    }
}

@media (max-width: 959px) {
    .auth-hero {
        text-align: center
    }

    .auth-hero p:not(.auth-eyebrow) {
        margin-left: auto;
        margin-right: auto
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1.5rem .85rem 2.5rem
    }

    .auth-card {
        border-radius: 1.25rem;
        padding: 1.25rem
    }

    .auth-check-row {
        align-items: flex-start;
        flex-direction: column
    }

    .auth-actions {
        flex-direction: column
    }

    .auth-actions .auth-button {
        width: 100%
    }
}