/* ============================================================================
   auth.css — standalone auth pages (login, create_password). Brief §6.2.
   These pages do NOT extend layout.html: no rail, no jQuery, no Bootstrap.
   They load tokens -> base -> components -> auth. One ambient wash on a dark
   ground (rule 1: colour arrives as light), one --paper card, a 3px
   .spectral-rule across the card top (its one sanctioned use in the app).
   ============================================================================ */

.auth {
    min-height: 100vh;
    background: var(--ink-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* One ambient radial wash — low opacity, violet lifting out of ink-deep. */
.auth::before {
    content: '';
    position: fixed;            /* fixed so the wash doesn't scroll with the card */
    inset: -20%;
    background: radial-gradient(circle at 50% 38%,
        rgba(79, 47, 143, 0.42) 0%,
        rgba(79, 47, 143, 0.18) 32%,
        rgba(21, 9, 31, 0) 62%);
    pointer-events: none;
    z-index: 0;
}

.auth__stage { position: relative; z-index: 1; width: 100%; max-width: 420px; }

.auth__card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;           /* clip the spectral rule to the card's top edge */
    box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.7);
}
/* The 3px spectrum sits flush across the card top — its one sanctioned use. */
.auth__rule { border-radius: 0; }

.auth__body { padding: 2.25rem 2rem 2rem; }

.auth__logo {
    height: 40px; width: auto; margin: 0 auto 1.5rem; display: block;
}

.auth__title {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.auth__form .field { margin-bottom: 1.1rem; }

.auth__form .field__input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    color: #000;
}
.auth__form .field__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.auth__form .field__input:hover { border-color: rgba(255, 255, 255, 0.28); }
.auth__form .field__input:focus-visible {
    border-color: var(--violet-lift);
    outline-color: var(--cyan);     /* cyan focus on dark ground (design system §Focus) */
}

.auth__submit { width: 100%; justify-content: center; margin-top: 0.4rem; }

.auth__divider {
    border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0 1rem;
}

/* Flashes: reuse .toast but ensure contrast on the dark card. */
.auth .toast { color: #fff; }
