/* The login page (WORKPLAN 2.12). Colours only through the tokens of :root (light and dark), no shadows, phone width
   first: one column of at most 380 px with a 16 px gutter. Served as /s/login.<hash>.css (CSP style-src 'self'). */
:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --text: #1c2230;
  --muted: #5b6475;
  --line: #d3d8e1;
  --field: #ffffff;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --error: #b3261e;
  --focus: #7aa7ea;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --panel: #1b212b;
    --text: #e6e9ef;
    --muted: #a3abb9;
    --line: #333c4a;
    --field: #141920;
    --accent: #5b8fe0;
    --accent-text: #0d1117;
    --error: #ff8a80;
    --focus: #3e6fb8;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font);
}
.login {
  width: 100%;
  max-width: 380px;
  padding: 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.login-title { margin: 0 0 16px; font-size: 1.35rem; font-weight: 600; }
.login-note, .login-lead { margin: 0 0 16px; color: var(--muted); }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; }
.login-field input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.login-field input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.login-error { margin: 0; color: var(--error); }
.login-button {
  margin-top: 4px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
}
.login-button:disabled { opacity: 0.6; cursor: progress; }
.login-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
