/* auth.css - login, register and verify pages: a voxel dungeon behind a glass card */
:root { --gold: #c59b27; --gold2: #f0c85a; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; color: #e1e1e6; background: #08070c; overflow-x: hidden; }
/* CSS backdrop (also what you see if WebGL is unavailable) */
#auth-bg { position: fixed; inset: 0; z-index: 0;
    background: radial-gradient(700px 420px at 22% 78%, rgba(255, 150, 60, .28), transparent 70%), radial-gradient(600px 380px at 82% 70%, rgba(255, 150, 60, .2), transparent 70%),
                radial-gradient(900px 520px at 50% 20%, #2a2140 0%, #120f19 65%, #08070c 100%); }
#auth-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse at 40% 50%, transparent 40%, rgba(5, 4, 8, .42) 100%), linear-gradient(180deg, rgba(5, 4, 8, .4), transparent 18%, transparent 75%, rgba(5, 4, 8, .5)); }
.auth-wrap { position: relative; z-index: 2; min-height: 100%; display: flex; align-items: center; justify-content: flex-end; padding: 24px clamp(16px, 8vw, 140px); }
.card { width: min(400px, 100%); padding: 28px 30px 24px; border-radius: 14px; text-align: left;
    background: rgba(18, 16, 24, .78); border: 1px solid rgba(197, 155, 39, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.brand .cube { width: 38px; height: 38px; image-rendering: pixelated; flex: none; }
.brand .title { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 1.35rem; color: var(--gold2); letter-spacing: .5px; line-height: 1.1; text-shadow: 0 2px 0 #3b2c08; }
.brand .tag { color: #9a96a6; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; }
h2 { color: var(--gold); margin: 0 0 14px; font-size: 1.15rem; border-bottom: 2px solid rgba(255, 255, 255, .08); padding-bottom: 8px; }
label { display: block; margin-bottom: 6px; font-weight: 600; color: #a0a0ab; font-size: .9rem; text-align: left; }
input { width: 100%; padding: 10px 12px; background: rgba(36, 36, 43, .85); border: 1px solid #34343d; color: #e1e1e6; border-radius: 6px; margin-bottom: 15px; font-size: 1rem; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(197, 155, 39, .25); }
button { background: linear-gradient(180deg, #e0b43a, #b88a1d); color: #15120a; border: none; padding: 11px 20px; font-weight: 700; border-radius: 6px; cursor: pointer; width: 100%; font-size: 1rem; box-shadow: 0 3px 0 #6b4f0e; }
button:hover { filter: brightness(1.08); }
button:active { transform: translateY(2px); box-shadow: 0 1px 0 #6b4f0e; }
.msg { margin: 0 0 14px; font-size: .92rem; line-height: 1.4; }
.msg.error, .error { color: #ff6b6b; }
.success { color: #4ade80; margin: 8px 0 18px; font-weight: 600; }
.link { text-align: center; margin-top: 16px; font-size: .88rem; color: #a0a0ab; }
.link a, a.go { color: var(--gold2); text-decoration: none; font-weight: 600; }
.link a:hover, a.go:hover { text-decoration: underline; }
.knight-graphic { width: 96px; height: 96px; margin: 4px auto 6px; display: block; }
.center { text-align: center; }
@media (max-width: 900px) { .auth-wrap { justify-content: center; align-items: flex-end; padding: 16px 16px 28px; } .card { background: rgba(18, 16, 24, .86); } }

@media (max-width: 480px) {
    .auth-wrap { padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px)); }
    .card { padding: 20px 18px 18px; border-radius: 16px; }
    .brand .title { font-size: 1.2rem; }
    .brand .cube { width: 32px; height: 32px; }
    input { font-size: 16px; padding: 12px; margin-bottom: 12px; }
    button { min-height: 46px; }
}
@media (max-height: 520px) and (orientation: landscape) { .auth-wrap { align-items: center; justify-content: flex-end; padding: 8px 16px; } .card { width: min(360px, 55%); padding: 14px 18px; } }
