:root {
  --bg: #0a0e14; --surface: #131920; --border: #1e2a36;
  --text: #e6edf3; --muted: #6b7d8e; --accent: #7eb8f0;
  --green: #3fb950; --red: #f85149;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem; width: 360px;
}
h1 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.subtitle { color: var(--muted); font-size: 0.8rem; margin-bottom: 2rem; }
.field { margin-bottom: 1rem; }
label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 0.375rem; color: var(--muted); }
input {
  width: 100%; padding: 0.625rem 0.75rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
  font-size: 0.875rem; font-family: inherit; outline: none;
}
input:focus { border-color: var(--accent); }
input.code-input {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.5rem; text-align: center; letter-spacing: 0.5rem;
  padding: 0.75rem;
}
button {
  width: 100%; padding: 0.75rem;
  background: var(--accent); border: none; border-radius: 6px;
  color: #000; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: inherit; margin-top: 0.5rem;
}
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.error { color: var(--red); font-size: 0.8rem; margin-top: 1rem; display: none; }
.back-link {
  display: inline-block; margin-top: 1rem; color: var(--muted);
  font-size: 0.8rem; cursor: pointer; text-decoration: none;
}
.back-link:hover { color: var(--accent); }
.step { display: none; }
.step.active { display: block; }
.totp-hint {
  color: var(--muted); font-size: 0.75rem; margin-top: 0.5rem;
  line-height: 1.4;
}
.login-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.forgot-link {
  color: var(--muted); font-size: 0.8rem; text-decoration: none;
  transition: color 0.15s;
}
.forgot-link:hover { color: var(--accent); }
.version {
  color: var(--muted); font-size: 0.7rem; opacity: 0.6;
}
