/* Audit fix #5 (2026-04-26) — login page now reads from design
 * tokens so dark-mode flips along with the rest of the app and a
 * tenant rebrand changes one file. Pre-fix this surface was hex-
 * heavy (slate-900 button, red-50/red-200/red-800 error banner,
 * cream gradient page bg) which kept it light even when the rest
 * of the app was dark. Plus Jakarta Sans was also linked but
 * never used — Inter from _BASE_CSS is what actually renders.
 */
html, body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--panel-2) 100%);
  min-height: 100vh;
}
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 32px 28px;
}
.login-wordmark {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.login-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.login-card .lede {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 500;
}
.login-error {
  border: 1px solid var(--neg);
  background: var(--neg-soft);
  color: var(--neg);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}
.login-error p { margin: 0; }
.login-card label {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.login-card input[type=text],
.login-card input[type=password] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--panel);
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.login-card input[type=text]:focus,
.login-card input[type=password]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.login-card button[type=submit] {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}
.login-card button[type=submit]:hover { filter: brightness(1.06); }
.login-card button[type=submit]:active { transform: translateY(1px); }
.login-card .meta {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--fg-3);
  text-align: center;
}
.login-pw-row {
  position: relative;
}
.login-pw-toggle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--fg-3);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.login-pw-toggle:hover { color: var(--fg); }
.login-pw-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.login-card button[type=submit][aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
@media (max-width: 480px) {
  .login-card { padding: 24px 20px 22px; border-radius: var(--radius-md); }
  .login-card h1 { font-size: 20px; }
}
/* Skip-link on /login (design-system v2 — 2026-04-27).
 * Shell pages get this via _nav_bar; /login carries no shell so
 * the link is rendered inline. WCAG 2.1 2.4.1: bypass blocks.
 * Hidden until tab-focused — no visual cost on the populated page. */
.k6-skip-link {
  position: absolute; top: -100px; left: 0;
  padding: 10px 16px;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 600; font-size: 13px;
  text-decoration: none;
  border-bottom-right-radius: var(--radius-sm);
  z-index: 9999;
}
.k6-skip-link:focus,
.k6-skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--fg); outline-offset: 2px;
}

/* Fase 5 (2026-07-19) — Unified Design Language (Decision #78):
 * CSS-led herauthoring van de login-kaart naar het instrument-dialect.
 * Inkt op warm papier, 1px lijnen, geen radius/schaduw, oranje als enige
 * actiekleur met een oranje kicker-dash boven het wordmark. DOM en
 * JS-hooks (k6-pw-toggle / k6-login-submit) ongewijzigd. */
html[data-design="unified"], html[data-design="unified"] body {
  background: var(--u-bg);
}
html[data-design="unified"] .login-card {
  border: 1px solid var(--u-line);
  border-radius: 0;
  box-shadow: none;
  background: var(--u-panel);
}
html[data-design="unified"] .login-wordmark {
  font-family: var(--u-mono, "JetBrains Mono", monospace);
  color: var(--u-muted);
  letter-spacing: 0.16em;
  position: relative;
  padding-top: 14px;
}
html[data-design="unified"] .login-wordmark::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 26px; height: 2px; background: var(--u-accent);
}
html[data-design="unified"] .login-card h1 {
  font-weight: 650; letter-spacing: -0.02em; color: var(--u-ink);
}
html[data-design="unified"] .login-card input[type="text"],
html[data-design="unified"] .login-card input[type="password"] {
  border-radius: 0; border: 1px solid var(--u-line);
  background: var(--u-bg); color: var(--u-ink);
}
html[data-design="unified"] .login-card input:focus-visible {
  outline: 2px solid var(--u-accent); outline-offset: 0; border-color: var(--u-accent);
}
html[data-design="unified"] #k6-login-submit {
  border-radius: 0; background: var(--u-accent); color: #fff;
  font-weight: 600; border: 0;
}
html[data-design="unified"] #k6-login-submit:hover { filter: brightness(0.95); }
html[data-design="unified"] .login-pw-toggle { border-radius: 0; }
