/* account.nzerra.com: the nzerra look (night grid, Unbounded, Plex), self-hosted so the CSP stays 'self' only. */
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/fonts/unbounded.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/fonts/ibm-plex-sans.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-mono-400.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/ibm-plex-mono-500.woff2) format('woff2');
}

:root {
  --bg: #0A0F17;
  --ink: #E6ECF5;
  --muted: #8394AD;
  --accent: #FF6A3D;
  --ok: #5FD39A;
  --rule: rgba(200, 215, 240, .16);
  --line: rgba(200, 215, 240, .35);
  --panel: rgba(130, 170, 230, .06);
  --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  color: var(--ink);
  font: 400 16px/1.6 'IBM Plex Sans', system-ui, sans-serif;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(255,106,61,.06), transparent 55%),
    linear-gradient(rgba(130,170,230,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130,170,230,.06) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  background-position: 0 0, -1px -1px, -1px -1px;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  width: 100%; max-width: 560px; margin: 0 auto; padding: 28px var(--gutter);
}
.logo { font-family: Unbounded, sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--accent); }
.crumb, .label, .status {
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
h1 {
  margin: 0 0 16px; font-family: Unbounded, sans-serif; font-weight: 700;
  font-size: clamp(30px, 7vw, 44px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
h1 span { color: var(--accent); }
p { margin: 0 0 14px; }
.lede { font-size: 18px; }
.muted { color: var(--muted); }

.status { margin: 0 0 20px; display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.busy .dot { background: var(--accent); animation: live 1.2s ease-in-out infinite; }
.status.ok { color: var(--ok); }
.status.ok .dot { background: var(--ok); }
.status.bad { color: var(--accent); }
.status.bad .dot { background: var(--accent); }

.panel { margin: 28px 0 0; padding: 20px; border: 1px solid var(--rule); background: var(--panel); }
.panel > :last-child { margin-bottom: 0; }

form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0;
  background: rgba(10, 15, 23, .85); color: var(--ink); font: 400 16px 'IBM Plex Sans', system-ui, sans-serif;
}
input:focus { border-color: var(--accent); outline: none; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.hint.after { margin-top: 16px; }
h1:focus { outline: none; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--accent); background: var(--accent); color: #0A0F17;
  font: 500 13px 'IBM Plex Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: #FF7F59; color: #0A0F17; }
button.ghost, .button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
button.ghost:hover, .button.ghost:hover { border-color: var(--accent); color: #FFFFFF; }
button:disabled { opacity: .55; cursor: progress; }
.error { margin: 0; color: var(--accent); font-size: 15px; }
.error:empty { display: none; }

.links { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.links li { border-bottom: 1px solid var(--rule); }
.links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; }
.links a::after { content: '→'; color: var(--accent); }

footer {
  width: 100%; max-width: 560px; margin: 0 auto; padding: 20px var(--gutter) 32px;
  border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer a { color: var(--muted); }

@keyframes live { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
@media (min-width: 640px) { :root { --gutter: 32px; } }
