/* ============================================================
   Anonymous auth shell — the centered-card layout used by
   /login, /register and the 403 Forbidden page (_auth_layout.php).
   Depends on BackendAsset for the Amethyst Neon design tokens and
   the aurora body background.
   ============================================================ */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    /* Transparent so the body's aurora background shows behind the card. */
    background: transparent;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--panel);
    border: 1px solid var(--line2);
    border-radius: 18px;
    padding: 2.25rem 2.4rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--text);
    margin-bottom: .5rem;
}

.auth-logo .cy { color: var(--violet); }

/* The mark's viewBox is cropped tight to the two squares (less empty
   space left/right of "koino|rista") and nudged down so its centre lands
   on the text's x-height midline. width is .735em = 36/48 of the height to
   keep the cropped 36×48 viewBox undistorted. */
.auth-logo svg { width: .735em; height: .98em; flex-shrink: 0; }

.auth-brand p {
    color: var(--muted);
    font-size: .72rem;
    font-family: var(--font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0;
}

.auth-form label {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0 0 .35rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="file"] {
    width: 100%;
    padding: .65rem .75rem;
    background: var(--inset);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .9rem;
    margin-bottom: 1rem;
}

.auth-form input[type="file"] {
    font-family: var(--font-mono);
    font-size: .8rem;
    padding: .5rem .65rem;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25);
}

.auth-form .auth-row {
    display: flex;
    gap: .75rem;
}

.auth-form .auth-row > * { flex: 1; }

.auth-submit {
    width: 100%;
    margin-top: .5rem;
    padding: .7rem 1rem;
    background: var(--violet);
    border: 0;
    border-radius: 9px;
    color: var(--on-violet);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--bo-transition-fast) var(--bo-ease);
}

.auth-submit:hover {
    background: #9ab5d8;
}

.auth-alt {
    text-align: center;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: .8rem;
}

.auth-alt a {
    color: var(--violet);
    text-decoration: none;
}

.auth-alt a:hover { text-decoration: underline; }

.auth-errors {
    background: rgba(220, 38, 38, .15);
    border: 1px solid rgba(220, 38, 38, .5);
    color: #fecaca;
    padding: .75rem 1rem;
    border-radius: 9px;
    margin-bottom: 1.25rem;
    font-size: .82rem;
}

.auth-errors ul { margin: 0; padding-left: 1.2rem; }

/* ── 403 Forbidden note — rendered inside the same card, below the
      brand header, in place of the sign-in form. ──────────────── */
.auth-note {
    text-align: center;
}

.auth-note-title {
    margin: 0 0 .6rem;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
}

.auth-note p {
    margin: .4rem 0;
    color: var(--muted);
    font-size: .9rem;
}

.auth-note-code {
    font-family: var(--font-mono);
    color: var(--violet);
    font-size: .8rem;
}

.auth-note a {
    color: var(--violet);
    text-decoration: none;
}

.auth-note a:hover { text-decoration: underline; }
