/* portal-dark.css — the dark working surfaces: driver portal and staff sign-in.
 *
 * The customer side is light (forms.css); the tools people use to do a job are
 * dark. These components were written twice already — once inline in the driver
 * application and once inline in the staff login — with the same hex values
 * typed out by hand in both. A third copy was about to appear for the driver
 * sign-in page.
 *
 * Built on assets/css/tokens.css, which must load first.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--gf-font);
  background: var(--gf-d-bg);
  color: var(--gf-d-text);
  min-height: 100vh;
  padding: 24px 16px 48px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 480px; margin: 0 auto; }

/* ── Masthead ─────────────────────────────────────────────────────── */
.logo      { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.logo img  { width: 32px; height: 32px; object-fit: contain; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

.hero-title { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.hero-sub   { font-size: 14px; color: var(--gf-d-text-2); line-height: 1.6; margin-bottom: 24px; }

.card { background: var(--gf-d-surface); border: 1px solid var(--gf-d-border);
        border-radius: 16px; padding: 24px; }

.section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--gf-blue); margin-bottom: 16px;
}

/* ── Fields ───────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 600; color: var(--gf-d-text-2); }
.field input, .field select, .field textarea {
  background: var(--gf-d-bg); border: 1px solid var(--gf-d-border); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; color: var(--gf-d-text); outline: none;
  font-family: inherit; min-height: 46px; transition: border-color 0.2s; width: 100%;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gf-blue); box-shadow: 0 0 0 3px rgba(11,138,209,0.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gf-d-text-3); }
.field select { appearance: none; }
.field select option:disabled { color: var(--gf-d-text-3); }

.hint    { font-size: 11px; color: var(--gf-d-text-3); line-height: 1.5; }
.divider { height: 1px; background: var(--gf-d-border); margin: 24px 0; }
.hidden  { display: none !important; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  width: 100%; height: 48px; background: var(--gf-blue); color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background 0.15s; margin-top: 8px;
}
.btn:hover    { background: var(--gf-blue-dark); }
.btn:active   { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost       { background: transparent; border: 1px solid var(--gf-d-border); color: var(--gf-d-text-2); }
.btn-ghost:hover { background: transparent; border-color: var(--gf-blue); color: var(--gf-d-text); }
.btn:focus-visible, .swap a:focus-visible, .other-doors a:focus-visible {
  outline: 2px solid var(--gf-blue-light); outline-offset: 2px;
}

/* ── Messages ─────────────────────────────────────────────────────── */
.msg       { border-radius: 8px; padding: 10px 14px; font-size: 13px;
             margin-bottom: 16px; display: none; line-height: 1.5; }
.msg-error { background: var(--gf-red-alpha);  border: 1px solid rgba(239,68,68,0.2);   color: var(--gf-red); }
.msg-info  { background: rgba(11,138,209,0.08); border: 1px solid rgba(11,138,209,0.2); color: var(--gf-d-text-2); }
.msg-ok    { background: var(--gf-green-alpha); border: 1px solid rgba(16,185,129,0.2); color: var(--gf-green); }

/* ── Swap / secondary links ───────────────────────────────────────── */
.swap { text-align: center; font-size: 13px; color: var(--gf-d-text-2); margin-top: 18px; }
.swap a { color: var(--gf-blue); text-decoration: none; font-weight: 600; cursor: pointer; }
.swap a:hover { text-decoration: underline; }

/* ── The other doors ──────────────────────────────────────────────────
 * Same idea as the light side: a rider who types the customer address, or a
 * staff member on the old /login bookmark, gets pointed rather than refused. */
.other-doors {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gf-d-border);
  text-align: center; font-size: 13px; color: var(--gf-d-text-2); line-height: 1.9;
}
.other-doors a { color: var(--gf-blue); text-decoration: none; font-weight: 600; }
.other-doors a:hover { text-decoration: underline; }
