/* TREND Control – minimal stylesheet for the Phase 2 auth screens.
   The full admin UI (Phase 3) brings its own styling. */
:root {
    --bg: #f4f5f7; --surface: #fff; --text: #1d232b; --muted: #5d6673;
    --border: #d6dae0; --accent: #1f5fbf; --accent-text: #fff;
    --error-bg: #fdecec; --error: #a01919; --notice-bg: #e8f1fd;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171c; --surface: #1d2229; --text: #e6e9ee; --muted: #9aa3ae;
        --border: #343b45; --accent: #5b95f0; --accent-text: #0b1220;
        --error-bg: #3a1c1c; --error: #ffb3b3; --notice-bg: #1d2c42;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.guest { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 380px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.brand { font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; color: var(--text); text-decoration: none; }
label { display: block; margin: 12px 0 4px; font-weight: 500; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input[type=email], input[type=password], input[type=text] { width: 100%; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
button { margin-top: 16px; padding: 8px 16px; border: 0; border-radius: 6px;
    background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.danger { background: var(--error); color: var(--surface); }
button.link { background: none; color: var(--accent); padding: 0; margin: 0; font-weight: 400; }
form.inline { display: inline; }
.muted { color: var(--muted); }
.error { background: var(--error-bg); color: var(--error); padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }
.error p, .notice { margin: 4px 0; }
.notice { background: var(--notice-bg); padding: 8px 12px; border-radius: 6px; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar .brand { margin: 0; }
.topbar nav { display: flex; gap: 16px; align-items: center; }
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
section { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
.qr svg { background: #fff; padding: 8px; border-radius: 6px; max-width: 220px; height: auto; }
code, .codes { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.codes { columns: 2; padding: 12px 16px; background: var(--bg); border-radius: 6px; list-style: none; margin: 8px 0; }
details { margin-top: 16px; }
