/* KBK Assistant: sign-in pages (log in, set password, two-step login). Same look as the assistant (shell.css). */
:root {
  --ink: #0E1116; --muted: #5B6472; --line: #E5E7EB; --line-soft: #F0F1F3; --bg: #F4F5F8; --panel: #FFFFFF; --field: #F9FAFB;
  --side: #0B0E14; --accent: #4F46E5; --accent-ink: #3730A3; --accent-soft: #EEF0FF; --accent-line: #C7CBFF;
  --ok: #0F6B40; --ok-soft: #E8F5EE; --bad: #A61B1B; --bad-soft: #FDECEC;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font: 400 15px/1.5 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(100%, 400px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: grid; gap: 16px; box-shadow: 0 10px 30px rgba(16, 24, 40, .08); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: .02em; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-weight: 600; font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; }
.h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.muted { color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 13px; }
.input { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; background: var(--accent); color: #fff; border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: #4338CA; }
.btn-outline { background: #fff; border-color: #D1D5DB; color: var(--ink); }
.btn-block { width: 100%; }
.alert { padding: 11px 13px; border-radius: 10px; color: var(--bad); background: var(--bad-soft); font-size: 14px; font-weight: 500; }
.ok { padding: 11px 13px; border-radius: 10px; color: var(--ok); background: var(--ok-soft); font-size: 14px; font-weight: 500; }
.qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 200px; height: 200px; }
.code { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; word-break: break-all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; background: var(--field); border: 1px dashed var(--line); border-radius: 10px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; color: var(--accent-ink); font-weight: 500; }
details summary { cursor: pointer; }
.foot { text-align: center; color: var(--muted); font-size: 12px; }
