/* ============================================================================
   Signed-out screens — login, register, password reset.
   Deliberately the one place that commits to the navy ground: it is the first
   thing anyone sees, and the brand lives there. Everything inside still comes
   from the same tokens as the rest of the app.
   ============================================================================ */

.authbody {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(1100px 520px at 12% -10%, rgba(45, 125, 210, 0.30), transparent 62%),
        radial-gradient(900px 480px at 92% 8%, rgba(247, 201, 72, 0.14), transparent 58%),
        var(--navy-900);
    color: var(--ink-on-dark);
}

.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4);
}

.auth__panel {
    width: 100%;
    max-width: 26rem;
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
    /*  Centred as a block, and its contents centred too — the logo, the title and
        the subtitle. The form opts back out below: a left-aligned label above a
        left-aligned field is far easier to fill in. */
    text-align: center;
}

/*  Sized by width, not height — see .sidebar__logo. The sign-in screen is the one
    place the logo is the whole of the page's identity, so it gets the most room. */
.auth__brand { display: block; margin-bottom: var(--space-4); }
.auth__logo {
    display: block;
    width: 100%;
    max-width: 224px;
    height: auto;
    /*  text-align on the panel does not centre this: it is a block, and a block
        narrower than its container is centred by its margins. The logo used to be
        an inline-block sized by height, which the panel's text-align did centre —
        so sizing it by width left it sitting against the left edge. */
    margin: 0 auto;
}

.auth__title {
    margin: 0 0 var(--space-2);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-gold);
    text-wrap: balance;
}
.auth__subtitle {
    margin: 0 0 var(--space-5);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.68);
}

.auth__notice { text-align: left; margin-bottom: var(--space-4); }

.auth__form { text-align: left; display: flex; flex-direction: column; gap: var(--space-4); }

.auth__form .field__label { color: rgba(255, 255, 255, 0.86); }

.auth__form .input {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: var(--space-3);
}
.auth__form .input::placeholder { color: rgba(255, 255, 255, 0.42); }
.auth__form .input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.22);
}

.auth__submit {
    width: 100%;
    justify-content: center;
    padding: var(--space-3);
    font-size: var(--text-base);
}

.auth__error {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: #FFB4A8;
}
.auth__summary {
    text-align: left;
    border: 1px solid var(--coral-200);
    background: rgba(233, 79, 74, 0.14);
    border-radius: var(--radius);
    color: #FFC8C1;
    font-size: var(--text-sm);
}
.auth__summary:empty { display: none; }
.auth__summary ul { margin: 0; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); }

.auth__links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--text-sm);
}
.auth__links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 600; }
.auth__links a:hover { color: var(--brand-gold); }

.auth__footer { margin: 0; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.38); }
