/* assets/css/auth.css — login and registration.
   Tokens, fonts, cosmic background and shared primitives live in theme.css,
   which is loaded alongside this file. Only the auth hero and form card here. */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

/* ---- Hero lockup ------------------------------------------------------- */
.auth-hero {
    text-align: center;
    max-width: 420px;
    margin-bottom: 26px;
}
.auth-hero .eyebrow { margin-bottom: 6px; }

.auth-wordmark {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 9vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}
.auth-tagline {
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.95rem;
    margin: 4px 0 0;
}

/* ---- Card -------------------------------------------------------------- */
.auth-card, .credentials-card {
    background: linear-gradient(180deg, rgba(23, 44, 87, 0.78), rgba(18, 36, 74, 0.78));
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 24px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), var(--glow-violet);
    backdrop-filter: blur(6px);
}

/* Pages that don't use .auth-hero (the credentials screen) keep a heading. */
.auth-card h1, .credentials-card h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 6px;
}
.auth-card h2, .credentials-card h2 {
    font-size: 1.05rem;
    text-align: center;
    margin: 0 0 16px;
}
.subtitle { text-align: center; margin: 0 0 22px; font-size: 0.88rem; }

/* The first .section-label in a card shouldn't push the top padding down. */
.auth-card .section-label:first-child { margin-top: 0; }

label {
    display: block;
    margin: 16px 0 6px;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
label .optional {
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--dim);
}

input, select { width: 100%; }

/* Team / redemption codes. Monospace and widely tracked so a participant can
   check what they typed against a printed slip character by character — the
   codes deliberately avoid I, L, O, 0 and 1, but O/Q and 8/B still need to be
   distinguishable at a glance in a queue. */
.code-input {
    font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 1.15rem;
    letter-spacing: 0.32em;
    text-align: center;
    text-transform: uppercase;
}
.code-input::placeholder {
    letter-spacing: 0.32em;
    color: var(--dim);
}

.field-hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--dim);
}

button, .button {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    display: block;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    box-shadow: 0 8px 22px rgba(122, 75, 168, 0.35);
}

.error { color: var(--negative); font-size: 0.88rem; margin-top: 10px; }
.warning { color: var(--gold); font-size: 0.84rem; margin-top: 12px; }
.link { text-align: center; margin-top: 20px; font-size: 0.84rem; }
.link a { color: var(--sky); text-decoration: none; }
.link a:hover { color: var(--lilac); }

/* The one-time credentials screen after registration: make the values
   unmissable, because they are shown exactly once. */
.credentials-card p { margin: 12px 0; }
.credentials-card strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--gold);
}
