/*
  The login page's styles, in a file rather than an inline block, because the
  service serves everything under `style-src 'self'` (spec §3.5) — there is no
  `'unsafe-inline'` anywhere, so an inline block would simply not apply.

  Checked in, unlike app.css, which deploy/dash/build.sh produces. Same tokens
  as app.css, cut down: this page must keep working when the bundle is
  unbuilt, so it shares nothing with it but the palette — and the faces,
  which both pages take from /fonts.css.
*/
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f7f8fa;
  --line: #e1e4ea;
  --line-strong: #cfd4dc;
  --text: #171a1f;
  --muted: #646c78;
  --gain: #157a48;
  --gain-bg: rgba(21, 122, 72, 0.1);
  --accent: #2b64d8;
  --shadow: 0 1px 2px rgba(23, 26, 31, 0.06), 0 6px 20px rgba(23, 26, 31, 0.05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --panel: #161a20;
    --panel-2: #1c2129;
    --line: #262c35;
    --line-strong: #343c48;
    --text: #e6e9ee;
    --muted: #8b93a1;
    --gain: #3fd08a;
    --gain-bg: rgba(63, 208, 138, 0.12);
    --accent: #6da3ff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}
h1 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
h1::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gain);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--gain-bg);
}
form, h1, p.note {
  width: 100%;
  max-width: 22rem;
}
body > * { flex: none; }
body { flex-direction: column; }
form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}
label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button {
  margin-top: 0.9rem;
  width: 100%;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
p.note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1rem 0 0;
  text-align: center;
}
code {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
}
