/**
 * Auth template (sign up / log in) — a single-screen split card. Solid brand
 * surfaces, NO gradients. Linked on auth pages via @push('styles'). Reusable:
 * /login uses the same .t1x-auth-* structure with its own copy + illustration.
 * Built on the app tokens in trivia-app.css (--bg-*, --border-color, --text-*).
 */
/* The card centers inside the standard layout's <main> (already flex:1 +
   centered + padded), so both auth pages sit consistently under the universal
   header/footer. Just a width cap here. Solid surfaces, no gradients. */
.t1x-auth { width: 100%; max-width: 960px; }
.t1x-auth-card {
    width: 100%; max-width: 960px;
    display: grid; grid-template-columns: 1fr;
    background: var(--bg-secondary, #1a1a35);
    border: 1px solid var(--border-color, #2a2a4a);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
    max-height: 100%; /* never taller than the viewport (minus symmetric padding) */
}

/* Form side (min-height:0 + overflow lets it scroll internally on short screens
   instead of pushing the page taller than the viewport). */
.t1x-auth-form { padding: 2.25rem 1.75rem; min-height: 0; overflow-y: auto; }
.t1x-auth-form h1 { font-family: 'Poppins', sans-serif; font-size: 1.55rem; font-weight: 800; margin: 0 0 0.35rem; color: var(--text-primary, #f1f1f1); }
.t1x-auth-sub { margin: 0 0 1.35rem; color: var(--text-secondary, #b0b0cc); font-size: 0.95rem; line-height: 1.5; }
.t1x-auth-fields { display: grid; gap: 0.9rem; }
.t1x-auth-fields > div { min-width: 0; }
.t1x-auth-hint { font-size: 12px; color: var(--text-tertiary, #808099); margin: 6px 0 0; }
.t1x-auth-submit { width: 100%; margin-top: 0.35rem; justify-content: center; }
.t1x-optional { opacity: 0.6; font-weight: 400; }
.t1x-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.t1x-auth-note { margin: 0 0 1.1rem; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.4); color: #c7d2fe; }
.t1x-auth-note strong { color: #fff; }
.t1x-auth-error { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 12px; background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.4); color: #fecaca; font-size: 0.9rem; }
.t1x-auth-error p { margin: 0.15rem 0; }

.t1x-auth-alt { margin: 1.2rem 0 0; padding-top: 1.05rem; border-top: 1px solid var(--border-color, #2a2a4a); font-size: 0.9rem; color: var(--text-secondary, #b0b0cc); text-align: center; }
.t1x-auth-alt a { color: #a5b4fc; font-weight: 700; text-decoration: none; }
.t1x-auth-alt a:hover { text-decoration: underline; }

/* Illustration side — hidden on mobile so the form owns the single screen. */
.t1x-auth-visual { display: none; position: relative; background: var(--bg-primary, #0f0f23); min-height: 100%; }
.t1x-auth-visual-img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 900px) {
    .t1x-auth-card { grid-template-columns: 1.05fr 0.95fr; }
    .t1x-auth-form { padding: 2.75rem 2.5rem; }
    .t1x-auth-visual { display: block; }
}

/* Login extras (passkey, divider, password disclosure) — solid, no gradients. */
.t1x-auth-passkey { margin-bottom: 1.1rem; }
.t1x-auth-divider { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0.1rem; color: var(--text-tertiary, #808099); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.t1x-auth-divider::before, .t1x-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-color, #2a2a4a); }
.t1x-auth-details { margin-top: 1.25rem; padding-top: 1.05rem; border-top: 1px solid var(--border-color, #2a2a4a); }
.t1x-auth-details summary { cursor: pointer; font-size: 0.9rem; color: var(--text-secondary, #b0b0cc); list-style: none; }
.t1x-auth-details summary::-webkit-details-marker { display: none; }
.t1x-auth-details form { margin-top: 0.9rem; }
.t1x-auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; color: var(--text-secondary, #b0b0cc); }
.t1x-auth-remember { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.t1x-auth-row a { color: #a5b4fc; text-decoration: none; }
.t1x-auth-row a:hover { text-decoration: underline; }
