@font-face { font-family: Oxanium; src: url('/assets/fonts/oxanium-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Oxanium; src: url('/assets/fonts/oxanium-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url('/assets/fonts/inter-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('/assets/fonts/inter-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root { color-scheme: dark; font-family: Inter, system-ui, sans-serif; background: #02060c; color: #f4fbff; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100dvh; margin: 0; background: #02060c url('/assets/dungeon-background.jpg') center/cover fixed; }
body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 50% 34%, rgba(25,196,255,.16), transparent 28%), linear-gradient(180deg, rgba(1,4,9,.2), rgba(1,4,9,.92)); pointer-events: none; }
.login-shell { position: relative; display: grid; min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); place-items: center; }
.login-gate { width: min(100%, 430px); padding: 34px 24px 26px; border: 2px solid rgba(72,214,255,.6); background: linear-gradient(180deg, rgba(8,22,35,.97), rgba(3,9,17,.985)); box-shadow: inset 4px 4px rgba(255,255,255,.04), inset -4px -4px rgba(0,0,0,.55), 8px 10px 0 rgba(0,0,0,.3), 0 0 54px rgba(30,180,255,.17); text-align: center; }
.gate-mark { display: grid; width: 78px; height: 78px; margin: 0 auto 22px; place-items: center; transform: rotate(45deg); border: 2px solid #4bdbff; background: #07192a; box-shadow: inset 0 0 0 8px #04101d, 0 0 25px rgba(55,216,255,.48); }
.gate-mark span { transform: rotate(-45deg); color: #bdf5ff; font: 700 1.45rem Oxanium, sans-serif; text-shadow: 0 0 12px #35d9ff; }
.eyebrow { margin: 0 0 8px; color: #72def6; font: 600 .65rem Oxanium, sans-serif; letter-spacing: .19em; }
h1 { margin: 0; font: 700 clamp(2.25rem, 11vw, 3.25rem)/1 Oxanium, sans-serif; letter-spacing: -.04em; }
.intro { max-width: 33ch; margin: 14px auto 25px; color: #9db7c7; font-size: .9rem; line-height: 1.55; }
.login-error { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #ff7d76; background: rgba(101,22,28,.35); color: #ffd2cf; font-size: .8rem; line-height: 1.35; }
.login-form { display: grid; gap: 15px; text-align: left; }
label { display: grid; gap: 7px; }
label span { color: #b7d7e4; font: 600 .69rem Oxanium, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
input { width: 100%; min-height: 51px; padding: 0 14px; border: 1px solid #36566b; border-radius: 2px; outline: 0; background: #030b14; color: #fff; font: 600 1rem Inter, sans-serif; box-shadow: inset 3px 3px rgba(0,0,0,.38); }
input:focus { border-color: #45d9ff; box-shadow: 0 0 0 3px rgba(69,217,255,.13), inset 3px 3px rgba(0,0,0,.38); }
button { display: flex; min-height: 56px; margin-top: 5px; padding: 0 17px; align-items: center; justify-content: space-between; border: 2px solid #62e3ff; border-radius: 2px; background: linear-gradient(180deg, #168bb7, #075b82); color: white; font: 700 .82rem Oxanium, sans-serif; letter-spacing: .09em; box-shadow: inset 3px 3px rgba(255,255,255,.12), inset -3px -3px rgba(0,0,0,.3), 5px 6px 0 rgba(0,0,0,.3); cursor: pointer; }
button:active { transform: translate(2px,2px); box-shadow: inset 3px 3px rgba(0,0,0,.22), 2px 3px 0 rgba(0,0,0,.3); }
button b { color: #c9f7ff; font-size: 1.7rem; line-height: 1; }
.privacy { margin: 21px 0 0; color: #668495; font-size: .68rem; line-height: 1.45; }

@media (max-width: 380px) { .login-gate { padding: 28px 19px 23px; } .gate-mark { width: 66px; height: 66px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
