*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0e0e12; --surface: #13131a; --surface2: #18181f; --border: #25252f; --border-hi: #32323f;
  --accent: #6366f1; --accent-hi: #818cf8; --text: #d1d1db; --text-muted: #65657a;
  --removed: #ef4444; --good: #22c55e;
}
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; font-size: 14px; line-height: 1.5;
}
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px; box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 22px; }
.auth-logo-icon {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(99,102,241,.15); color: var(--accent-hi);
}
h1 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.auth-step { display: flex; flex-direction: column; gap: 12px; }
.auth-step[hidden] { display: none; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.opt { font-weight: 400; }
input {
  background: var(--surface2); border: 1px solid var(--border-hi); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 14px; font-weight: 600; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; margin-top: 4px; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-hi); }
.auth-alt { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 4px; }
.auth-hint { font-size: 13px; color: var(--text-muted); }
.auth-hint.small { font-size: 12px; word-break: break-all; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
.auth-msg { border-radius: 8px; padding: 9px 11px; font-size: 13px; margin-bottom: 14px;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }
.auth-msg.ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: #86efac; }
.qr-box { background: #fff; border-radius: 10px; padding: 10px; align-self: center; line-height: 0; }
.qr-box img { width: 200px; height: 200px; }
code, .codes { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.codes { background: var(--surface2); border: 1px solid var(--border-hi); border-radius: 8px;
  padding: 12px; font-size: 14px; line-height: 1.8; columns: 2; text-align: center; }
