/* services/webapp/static/board-login.css — the BOARD's sign-in, in the BOARD's own clothes.
 *
 * WHY THIS FILE IS NOT admin.css
 * ------------------------------
 * Two independent reasons, and the second one is a bug I shipped.
 *
 * 1. IT IS A DIFFERENT PRODUCT SURFACE. `/admin/board/` is serve_jon — dark, #0f1419, blue accent,
 *    "Driven Auto — Live Leads". Dropping the light indigo operator console in front of it made
 *    the sign-in look like a different company's page than the one it signs you into. The palette
 *    below is lifted verbatim from serve_jon.py's own CSS block so the two are continuous.
 *
 * 2. admin.css IS NOT REACHABLE FROM WHERE THIS PAGE IS READ. It is served from
 *    `/admin/dealers/static/`, which sits behind nginx basic-auth AND DRIVEN_OPS_IP_ALLOWLIST.
 *    The whole point of the board sign-in is that it answers from anywhere — phones on carrier
 *    NAT — so for every visitor it was actually built for, the stylesheet and the brand image both
 *    returned 401 and the page rendered as raw unstyled HTML with a broken image.
 *
 *    That is the same defect as DOCS/78 (the console's assets 404'd at the edge for weeks),
 *    reintroduced one layer up, and it is why "looks right" and "is reachable" are the same
 *    question on this page. This sheet is served by a NAMED PUBLIC ROUTE — the vhost's own "ONE
 *    asset, named" rule — and the brand mark is TEXT, not an image, exactly as serve_jon's login
 *    has always drawn it. There is nothing left on this page that can 401.
 */

/* Verbatim from serve_jon.py's CSS block. If that palette changes, change it here too — these two
 * pages are one visual surface to the person signing in. */
:root {
  --bg: #0f1419;
  --panel: #171d26;
  --line: #232c3a;
  --ink: #e6edf3;
  --dim: #8b98a9;
  --accent2: #4a9eff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 30px;
  width: 100%;
  max-width: 360px;
}

/* The brand mark is TEXT on purpose — see the header. An <img> here is one more thing that can
 * fail to load for the reader this page exists for. */
.logo {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.logo span { color: var(--accent2); }

.card h2 { font-size: 18px; margin: 0 0 4px; }
.card .s { color: var(--dim); font-size: 13px; margin-bottom: 20px; }

.card label {
  display: block;
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 14px 0 6px;
}

.card input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 15px;
}

.card input:focus { outline: none; border-color: var(--accent2); }

.card button {
  width: 100%;
  margin-top: 22px;
  background: var(--accent2);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 12px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.card button:hover { filter: brightness(1.08); }

.err {
  background: rgba(248, 81, 73, 0.14);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #f85149;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.note { color: var(--dim); font-size: 12px; margin-top: 18px; line-height: 1.5; }
