/* Driver LOGIN page (D2) - mobile-first, single column, big touch targets.
   Self-contained (no shared shell) so the public login renders standalone. */
:root {
  --dl-bg: #0f1220;
  --dl-card: #1a1f33;
  --dl-fg: #f3f5fb;
  --dl-muted: #a7adc4;
  --dl-accent: #4c8bf5;
  --dl-danger: #ff6b6b;
  --dl-radius: 14px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  /* Diffuse light halo behind the card (owner 2026-07-21) - the futurist glow. */
  background:
    radial-gradient(900px 520px at 50% -4%, rgba(76, 139, 245, 0.13), transparent 60%),
    var(--dl-bg);
  color: var(--dl-fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.dl-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px calc(16px + env(safe-area-inset-bottom));
}
.dl-card {
  width: 100%;
  max-width: 440px;
  background: var(--dl-card);
  border-radius: var(--dl-radius);
  padding: 24px 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(76, 139, 245, 0.06),
    0 0 70px rgba(76, 139, 245, 0.12);
}
.dl-title { font-size: 1.5rem; margin: 0 0 4px; }
.dl-sub { color: var(--dl-muted); margin: 0 0 16px; line-height: 1.4; }
/* [hidden] MUST win over the class display rules below: `.dl-form{display:flex}`
   outranks the UA `[hidden]{display:none}` (zero specificity), which made ALL steps
   (email/password/OTP/trust/magic-link) show at once. Force it, exactly like
   company login (login.css) - the flow then shows ONE step at a time. */
[hidden] { display: none !important; }
.dl-form { display: flex; flex-direction: column; }
.dl-form[hidden] { display: none !important; }
.dl-label {
  font-size: 0.85rem;
  color: var(--dl-muted);
  margin: 12px 0 6px;
}
.dl-input {
  width: 100%;
  font-size: 1.1rem;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid #2c3350;
  background: #10142a;
  color: var(--dl-fg);
  min-height: 52px;
}
.dl-input:focus { outline: 2px solid var(--dl-accent); border-color: transparent; }
.dl-btn {
  margin-top: 20px;
  width: 100%;
  min-height: 54px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  background: var(--dl-accent);
  color: #fff;
  cursor: pointer;
}
.dl-btn:disabled { opacity: 0.6; cursor: default; }
.dl-btn-secondary { background: #2c3350; margin-top: 14px; }
.dl-error { color: var(--dl-danger); margin: 12px 0 0; }
.dl-note { color: var(--dl-fg); line-height: 1.5; }
.dl-note p { margin: 8px 0; }
/* Inline text-button affordance (change email / forgot password / resend): a
   borderless accent link that keeps the mobile-first tap target. */
.dl-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--dl-accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.dl-link:disabled { opacity: 0.6; cursor: default; }
.dl-note-inline { color: var(--dl-muted); margin: 10px 0 0; }

/* --- App gate (owner 2026-07-21): enterprise, futurist SaaS look ---------- */
.dl-logo {
  display: block;
  height: 34px;
  width: auto;
  margin: 4px auto 22px;
  opacity: 0.98;
}
.dl-muted { color: var(--dl-muted); font-size: 0.9rem; }
.dl-help { margin-top: 20px; text-align: center; }

/* App-store-style badge button: glyph + a small lead line over a bold label. */
.dl-appbtn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #5a95f7 0%, var(--dl-accent) 100%);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(76, 139, 245, 0.28);
  transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.dl-appbtn:hover { box-shadow: 0 8px 26px rgba(76, 139, 245, 0.38); }
.dl-appbtn:active { transform: translateY(1px); }
.dl-appbtn:first-of-type { margin-top: 4px; }
.dl-appbtn-glyph { font-size: 1.35rem; line-height: 1; flex: 0 0 auto; }
.dl-appbtn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 1.2rem;
  font-weight: 700;
}
.dl-appbtn-lead {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
/* Ghost = secondary CTA (install / desktop): outlined on the card surface. */
.dl-appbtn-ghost {
  background: #10142a;
  border-color: #2c3350;
  color: var(--dl-fg);
  box-shadow: none;
}
.dl-appbtn-ghost:hover { border-color: var(--dl-accent); box-shadow: none; }
/* Disabled = iOS "in preparation": inert, muted. */
.dl-appbtn-disabled {
  background: #10142a;
  border-color: #2c3350;
  color: var(--dl-muted);
  box-shadow: none;
  cursor: default;
}
