/* Standalone styling for the login page. Mirrors the app's dark
   palette (see the :root block in style.css) so signing in and using the app
   feel like one product, but this file is self-contained - the login page
   never loads app.js or the main stylesheet. */
:root {
  --header-bg: #191b26;
  --app-bg: #0e0f17;
  --text-primary: #e7e9f2;
  --text-secondary: #9aa0b5;
  --accent: #8b7cf6;
  --input-bg: #272a3a;
  --divider: #272a3a;
  --danger: #f15c6d;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--app-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.login-wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--header-bg);
  border-radius: 14px;
  padding: 30px 26px 26px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.login-logo {
  font-size: 40px;
  text-align: center;
  line-height: 1;
}
.login-title {
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  margin: 12px 0 22px;
}
.login-form { display: flex; flex-direction: column; }
.login-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 12px 0 6px;
}
.login-label:first-of-type { margin-top: 0; }
.login-input {
  width: 100%;
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
}
.login-input:focus { border-color: var(--accent); }
.login-password-wrap { position: relative; display: flex; align-items: center; }
.login-password-wrap .login-input { padding-right: 58px; }
.login-reveal {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}
.login-code-input {
  letter-spacing: 8px;
  text-align: center;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.login-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin: 10px 0 2px;
  line-height: 1.35;
}
.login-btn {
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 8px;
  padding: 12px;
  background: var(--accent);
  color: #04231c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.login-btn:disabled { opacity: 0.6; cursor: default; }
.login-btn.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--divider);
}
.login-2fa-lead {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 4px;
}
.login-2fa-actions { display: flex; gap: 10px; }
.login-2fa-actions .login-btn { flex: 1; }
