/*
 * Screens the legacy page never had (sign in, 2FA, password, admin Users),
 * built only from the legacy tokens and components so they look the same.
 */

/* Sign-in pages: one panel centred on the page background. */
.auth{min-height:100vh;display:grid;place-items:center;padding:24px 16px}
.auth-card{width:100%;max-width:420px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:26px 24px}
.auth-card .org{padding:0 0 18px}
.auth-card .org b{font-size:15px}.auth-card .org span{color:var(--muted)}
.auth-card h1{font-size:34px;margin:0 0 8px}
.auth-card .lede{margin:0 0 18px}
.auth-card .btn{text-align:center;width:100%}
.auth-links{margin:16px 0 0;font-size:13.5px;display:flex;flex-wrap:wrap;gap:6px 16px}
.auth-links form{display:inline}

/* Messages shown on a page (form errors, sign-in failures). */
.msg{border-radius:8px;padding:10px 14px;font-size:14px;margin:0 0 14px}
.msg-error{background:var(--tomato-soft);color:var(--tomato)}
.msg-ok{background:var(--basil-soft);color:var(--basil)}

/* Form rows on top of the legacy .aform */
.aform .check{flex-direction:row;align-items:center;gap:8px;color:var(--ink);font-size:14px}
.aform .check input{width:auto}
.aform fieldset{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:0;display:flex;flex-direction:column;gap:6px}
.aform legend{font-size:13px;color:var(--muted);padding:0 4px}
.aform .choice{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--ink)}
.aform .choice input{margin-top:4px}
.aform .choice small{display:block;color:var(--muted);font-size:12.5px}
.aform .help{font-size:12.5px;color:var(--muted)}
.aform .field-error{font-size:12.5px;color:var(--tomato)}
.aform ul.field-error{margin:0;padding-left:18px}

/* Sign out and admin links in the nav footer */
.me{flex-wrap:wrap}
.me .who{flex:1;min-width:0;display:flex;gap:10px;align-items:center}
.me .who b{display:block;font-weight:600;font-size:13px;color:var(--nav-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.me .avatar{width:28px;height:28px;border-radius:50%;background:var(--nav-hi);color:var(--nav-ink);display:grid;place-items:center;font:700 12px "Public Sans",sans-serif;flex:none}
.me .out{width:100%;display:flex;gap:12px;font-size:12px}
.me .out a,.me .out button{color:var(--nav-mute);background:none;border:0;padding:0;font:inherit;cursor:pointer;text-decoration:underline}
@media (max-width:760px){.me .out{justify-content:center;font-size:10.5px}.me .who b{display:none}}

/* Admin tables */
.tag.off{background:var(--chip);color:var(--muted)}
td .muted,.muted{color:var(--muted)}

/* The legacy page only had <button class="btn">; links styled as buttons */
a.btn{display:inline-block;text-decoration:none}

/* The legacy KPIs, pills and sortable headers were buttons; here they are links */
a.kpi,a.pill{display:block;text-decoration:none}
a.pill{display:inline-block}
.matrix th a{display:inline-block;width:100%;color:inherit;text-decoration:none}
a.back{display:inline-block}
/* Store chips in Ask the data answers are links */
a.schip{text-decoration:none;display:inline-block}
