/* =============================================================================
   Public-facing surfaces: sign-in/account pages, error pages and the ticket portal.
   The marketing site has its own section at the bottom.
   ========================================================================== */

/* Auth shell --------------------------------------------------------------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-brand {
    position: relative; overflow: hidden;
    background: radial-gradient(1200px 600px at -10% -10%, rgba(255, 214, 10, .16), transparent 60%),
                radial-gradient(800px 500px at 110% 110%, rgba(36, 81, 214, .35), transparent 60%),
                linear-gradient(160deg, #0b1227 0%, #111a36 60%, #0b1227 100%);
    color: #e6e9f2; padding: 3rem clamp(2rem, 5vw, 4.5rem);
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.auth-brand::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo { height: 54px; width: auto; }
.auth-pitch h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1rem; }
.auth-pitch h2 em { font-style: normal; color: var(--brand); }
.auth-pitch p { color: #aab3c8; font-size: 1rem; max-width: 30rem; margin: 0; }
.auth-points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.auth-points li { display: flex; gap: .8rem; align-items: flex-start; color: #cfd4e2; font-size: .9rem; }
.auth-points i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 214, 10, .12); color: var(--brand); flex-shrink: 0; font-size: .8rem; }
.auth-brand-foot { color: #6b7591; font-size: .78rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.auth-brand-foot a { color: #8a93ab; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; position: relative; }
.auth-main .auth-theme { position: absolute; top: 1.25rem; right: 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 560px; }
.auth-head { margin-bottom: 1.75rem; }
.auth-head .auth-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: #8a6100; font-size: 1.2rem; margin-bottom: 1.25rem; box-shadow: inset 0 0 0 1px rgba(234, 179, 8, .25); }
:root[data-theme="dark"] .auth-head .auth-icon { background: rgba(255, 214, 10, .12); color: var(--brand); }
.auth-head .auth-icon.danger { background: var(--danger-bg); color: var(--danger-text); box-shadow: none; }
.auth-head .auth-icon.success { background: var(--success-bg); color: var(--success-text); box-shadow: none; }
.auth-head h1 { font-size: 1.65rem; font-weight: 750; letter-spacing: -.025em; margin: 0 0 .4rem; }
.auth-head p { color: var(--text-3); margin: 0; font-size: .9rem; }
.auth-form { display: grid; gap: 1.1rem; }
.auth-form .form-control { min-height: 44px; font-size: .925rem; }
.auth-form .btn-lg { width: 100%; min-height: 46px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .85rem; }
.auth-sep { display: flex; align-items: center; gap: .75rem; color: var(--text-4); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.auth-sep::before, .auth-sep::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.auth-foot { margin-top: 1.75rem; font-size: .85rem; color: var(--text-3); text-align: center; }
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 2.75rem; }
.pw-field .pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border-strong); font-family: var(--font-mono); font-size: .9rem; }

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { padding: 1.5rem; flex-direction: row; align-items: center; }
    .auth-brand .auth-pitch, .auth-brand .auth-brand-foot { display: none; }
    .auth-logo { height: 40px; }
    .auth-main { align-items: flex-start; padding-top: 2rem; }
}

/* Minimal pages (404, error, ticket portal) --------------------------------- */
.plain-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.plain-top { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem, 4vw, 2.5rem); background: #0b1227; }
.plain-top img { height: 38px; }
.plain-top a.home { color: #cfd4e2; font-size: .85rem; font-weight: 550; }
.plain-body { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 4rem; }
.plain-foot { text-align: center; color: var(--text-4); font-size: .78rem; padding: 1.5rem; }
.big-state { text-align: center; padding: 4rem 1rem; max-width: 520px; margin: 0 auto; }
.big-state .code { font-size: 5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--text) 30%, var(--text-4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big-state h1 { font-size: 1.5rem; margin: 1rem 0 .5rem; }
.big-state p { color: var(--text-3); }

/* ---- Account settings -------------------------------------------------------- */
.settings-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 480px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.danger-zone .panel-title i { color: var(--danger); }
.setup-steps { list-style: none; counter-reset: step; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.setup-steps > li { counter-increment: step; position: relative; padding: 1rem 0 1rem 2.75rem; border-bottom: 1px solid var(--border); }
.setup-steps > li:last-child { border-bottom: 0; padding-bottom: 0; }
.setup-steps > li::before { content: counter(step); position: absolute; left: 0; top: 1rem; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--primary-soft); color: var(--text); }
.setup-steps h3 { font-size: .9375rem; font-weight: 650; margin: .2rem 0 .25rem; }
.setup-steps p { color: var(--text-3); font-size: .8438rem; margin: 0 0 .75rem; }
.qr-block { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.qr-frame { width: 184px; height: 184px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; flex-shrink: 0; }
.qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; }
.key-display { display: flex; align-items: center; gap: .4rem; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: .35rem .35rem .35rem .75rem; max-width: 100%; }
.key-display code { font-size: .9rem; letter-spacing: .04em; overflow-wrap: anywhere; color: var(--text); }
.otp-input { font-family: var(--font-mono); font-size: 1.25rem; letter-spacing: .35em; max-width: 220px; }
