@font-face { font-family: 'Hack Nerd Font Mono'; src: url('/pub/fonts/HackNerdFontMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hack Nerd Font Mono'; src: url('/pub/fonts/HackNerdFontMono-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #090b16; --panel: #10142a; --panel2: #161b36; --line: #262d52; --text: #e6e9ff; --muted: #8b93c7;
  --pink: #ff2d95; --cyan: #00e5ff; --orange: #ff9f43; --gold: #ffd166; --green: #2ee59d; --red: #ff5f6d;
  --radius: 10px; --font: 'Hack Nerd Font Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); }
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--cyan); }
.btn.primary { background: linear-gradient(90deg, var(--pink), var(--orange)); border: 0; color: #120818; font-weight: 700; }
.btn.danger { border-color: #5a2233; color: var(--red); }
.btn.small { padding: 4px 8px; font-size: 12px; }
.input { width: 100%; background: #0b0f22; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; outline: none; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px #00e5ff22; }
label.field { display: block; margin: 10px 0; color: var(--muted); font-size: 12px; }
label.field > .input, label.field > select { margin-top: 4px; }
.error { color: var(--red); min-height: 1.2em; font-size: 13px; }
.muted { color: var(--muted); }
.neon { background: linear-gradient(90deg, var(--pink), var(--orange) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* login page */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at 70% 100%, #ff2d9533, transparent 55%), radial-gradient(ellipse at 10% 0%, #00e5ff22, transparent 50%), var(--bg); }
.login-card { width: min(380px, 100%); background: #10142ae6; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 20px 80px #000a, 0 0 0 1px #ff2d9522; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand img { width: 52px; height: 52px; }
.brand h1 { margin: 0; font-size: 24px; letter-spacing: 2px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.login-card .btn.primary { width: 100%; margin-top: 8px; padding: 11px; }
.switch { display: block; text-align: center; margin-top: 14px; color: var(--muted); cursor: pointer; background: none; border: 0; width: 100%; }
.switch:hover { color: var(--cyan); }
.langs { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 4px; }
.langs button { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: pointer; color: var(--muted); }
.langs button.on { color: var(--text); border-color: var(--pink); }
[hidden] { display: none !important; }
