/* The operator console's base style, light and dark: what the sign-in page
   needs, and what the console builds on. Nothing is loaded from elsewhere. */
:root {
  --bg: #f5f6f8; --panel: #ffffff; --sunken: #f0f2f5; --text: #18202c; --muted: #5d6877; --faint: #646e7d;
  --line: #e2e6ec; --line-strong: #cfd5de; --field-line: #7a8492; --accent: #2a62d9; --accent-text: #ffffff; --accent-soft: #e8effc;
  --good: #187a47; --good-soft: #e3f3ea; --warn: #9a5800; --warn-soft: #fcf0d9; --bad: #bd2f1b; --bad-soft: #fbe6e2;
  --chip: #edf0f4; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --radius: 10px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text); background: var(--bg);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116; --panel: #161a21; --sunken: #1c212a; --text: #e4e8ee; --muted: #9ba5b3; --faint: #828c9a;
    --line: #262c36; --line-strong: #353d4a; --field-line: #6f7988; --accent: #6f9cff; --accent-text: #0e1116; --accent-soft: #1b2740;
    --good: #52c48c; --good-soft: #13281d; --warn: #f0b04a; --warn-soft: #2c2210; --bad: #ff7b66; --bad-soft: #321713;
    --chip: #222833; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0; }
h1 { font-size: 18px; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text);
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--sunken); text-decoration: none; }
.btn:focus-visible, input:focus-visible, .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--sunken); }
.btn.sm { min-height: 28px; padding: 0 10px; font-size: 13px; }
.btn.wide { width: 100%; min-height: 40px; }
.field { display: grid; gap: 6px; font-weight: 500; }
/* A field's edge stands out 3:1 from what is around it, and from its fill. */
input[type=password], input[type=text] {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 8px;
  background: var(--panel); color: var(--text); font: inherit;
}
input[readonly] { background: var(--sunken); font-family: var(--mono); font-size: 12.5px; }
.problem { padding: 8px 12px; border-radius: 8px; background: var(--bad-soft); color: var(--bad); }

/* Sign-in */
.login-page { display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(400px, 100%); display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); box-shadow: var(--shadow);
}
.login-card form { display: grid; gap: 14px; }

/* Below 16px type, Safari on a phone zooms the page into a field it focuses. */
@media (max-width: 720px) {
  input[type=password], input[type=text] { font-size: 16px; }
}
