/* MailHub sign in page: stands alone (the main stylesheets need a session). */
:root { --bg: #f5f5f5; --card: #ffffff; --text: #242424; --sub: #616161; --line: #d1d1d1; --accent: #0f6cbd; --bad: #c50f1f; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #1f1f1f; --card: #292929; --text: #ffffff; --sub: #adadad; --line: #525252; --accent: #479ef5; --bad: #f1707b; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--bg); color: var(--text); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; }
.lg-card { width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
h1 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.lg-sub { margin: 0 0 16px; color: var(--sub); }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
input { width: 100%; padding: 8px 10px; font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 4px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { margin-top: 20px; width: 100%; padding: 9px; font: inherit; font-weight: 600; color: #fff; background: var(--accent);
  border: 0; border-radius: 4px; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.lg-msg { min-height: 1.4em; margin: 12px 0 0; color: var(--bad); }

/* One-time setup page (enrol.html) */
.en-card { max-width: 460px; }
h2 { margin: 20px 0 6px; font-size: 15px; font-weight: 600; }
.en-qr { display: flex; justify-content: center; margin: 8px 0; }
.en-qr svg { max-width: 100%; height: auto; border-radius: 4px; }
.en-secret { margin: 4px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px;
  font: 14px/1.4 Consolas, "Courier New", monospace; word-break: break-all; user-select: all; }
.en-codes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.en-code { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; text-align: center;
  font: 13px/1.3 Consolas, "Courier New", monospace; user-select: all; }
code { font-family: Consolas, "Courier New", monospace; }
