/* Login, device enrollment and the Pilot 2 page (ADR-026): same light/dark tokens as styles.css. */
:root { color-scheme: light; --background: #f3f5f9; --surface: #ffffff; --field: #ffffff; --line: #d7dde6; --text: #0f1b2d; --muted: #5b6778;
  --accent: #1d5fbf; --accent-strong: #154a96; --on-accent: #ffffff; --danger: #c53030; --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 28px rgba(15,27,45,.08); }
:root[data-theme="dark"] { color-scheme: dark; --background: #0e1622; --surface: #16202e; --field: #111a27; --line: #2a3748; --text: #f1f5f9; --muted: #94a3b8;
  --accent: #5aa7f0; --accent-strong: #8cc3f6; --on-accent: #06182e; --danger: #f87171; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) { color-scheme: dark; --background: #0e1622; --surface: #16202e;
  --field: #111a27; --line: #2a3748; --text: #f1f5f9; --muted: #94a3b8; --accent: #5aa7f0; --accent-strong: #8cc3f6; --on-accent: #06182e; --danger: #f87171;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.35); } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 28px 18px; background: var(--background); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif; }
main.access-shell { position: relative; width: min(100%, 560px); margin: 5vh auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.eyebrow { font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--accent); margin: 0; }
h1 { font-size: 30px; margin: 12px 0; }
p { line-height: 1.7; }
label { display: block; margin: 18px 0 10px; font-weight: 600; font-size: 15px; }
input { display: block; width: 100%; margin-top: 8px; padding: 13px 14px; min-height: 48px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; color: inherit; }
input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
button, .action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; margin: 8px 8px 8px 0; text-decoration: none; }
button:hover, .action-link:hover { background: var(--accent-strong); }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: 13px; }
.danger { color: var(--danger); }
.checkbox { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.checkbox input { width: 22px; height: 22px; min-height: 0; margin: 0; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-block: 1px solid var(--line); padding: 18px 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.steps { padding: 16px 0 16px 24px; line-height: 1.9; }
.steps li { padding-block: 6px; }
#pilot-status, #login-status, #enroll-status { min-height: 28px; overflow-wrap: anywhere; }
nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
code { overflow-wrap: anywhere; }
.theme-corner { position: absolute; top: 14px; right: 14px; }
.theme-toggle { min-height: 36px; padding: 6px 12px; margin: 0; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.theme-toggle:hover { background: var(--background); color: var(--text); }
@media (max-width: 420px) { main.access-shell { padding: 20px; margin: 1vh auto; } h1 { font-size: 26px; } dl { grid-template-columns: 1fr; } dd { text-align: left; } }
