/* ==========================================================================
   Public auth pages: login (+ 2FA, forgot password) and registration.
   Markup: login.php, register.php, includes/auth-common.php.
   Palette follows the light app shell (app-shell.css, dashboard.php).
   ========================================================================== */

@font-face {
  font-family: "SFGeorgian";
  src: url("../fonts/SFGeorgian.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --a-ink: #1f2a44;
  --a-ink-2: #5d6884;
  --a-muted: #8a94a6;
  --a-page: #f4f6fa;
  --a-surface: #ffffff;
  --a-soft: #f7f8fb;
  --a-border: #e6e9f0;
  --a-border-2: #d6dbe6;
  --a-brand: #23377a;
  --a-brand-2: #1a2d66;
  --a-brand-wash: rgba(35, 55, 122, 0.08);
  --a-ring: 0 0 0 4px rgba(35, 55, 122, 0.12);
  --a-accent: #b8162c;
  --a-cta: linear-gradient(135deg, #800000 0%, #b8162c 100%);
  --a-good: #0a8f4d;
  --a-bad: #d93025;
  --a-warn: #c77700;
  --a-radius: 12px;
  --a-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 40px rgba(16, 24, 40, 0.07);
  --a-font: "Inter", "SFGeorgian", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--a-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--a-ink);
  background:
    radial-gradient(900px 520px at 105% -10%, rgba(35, 55, 122, 0.07), transparent 60%),
    radial-gradient(760px 480px at -5% 108%, rgba(184, 22, 44, 0.05), transparent 60%),
    var(--a-page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--a-brand); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
  gap: 16px;
  padding: 16px;
}
.auth-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 16px;
}
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 40px;
}
.auth-topbar .auth-mobile-logo {
  display: none; height: 34px; width: auto; min-width: 0; max-width: calc(100% - 150px);
  object-fit: contain; object-position: left center; margin-right: auto;
}
.auth-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px 0;
}
.auth-card {
  width: 100%;
  max-width: 448px;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 20px;
  box-shadow: var(--a-shadow-card);
  padding: 36px 36px 32px;
  position: relative;
}
.auth-card--wide { max-width: 520px; }
.auth-below {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--a-muted);
}
.auth-below i { font-size: 12px; }

/* ---------- Language switch ---------- */
.auth-lang {
  display: inline-flex;
  padding: 3px;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.auth-lang a {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--a-ink-2);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.auth-lang a:hover { color: var(--a-brand); background: var(--a-soft); }
.auth-lang a.active { background: var(--a-brand); color: #fff; }

/* ---------- Showcase (left panel) ---------- */
.auth-showcase {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px 44px 28px;
  border-radius: 24px;
  border: 1px solid var(--a-border);
  background: linear-gradient(160deg, #ffffff 0%, #f5f7fc 52%, #eef1f9 100%);
}
.auth-showcase::before {
  /* dotted grid, fading out toward the bottom */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(35, 55, 122, 0.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
  pointer-events: none;
}
.auth-showcase::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 22, 44, 0.12), transparent 65%);
  pointer-events: none;
}
.auth-showcase > * { position: relative; z-index: 1; }
.sc-logo { height: 44px; width: auto; display: block; }
.sc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0 28px;
  max-width: 520px;
}
.sc-eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--a-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--a-ink-2);
}
.sc-eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--a-accent);
  box-shadow: 0 0 0 3px rgba(184, 22, 44, 0.15);
}
.sc-headline {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--a-ink);
  margin-bottom: 14px;
}
.sc-headline .accent {
  background: linear-gradient(90deg, #23377a 0%, #800000 60%, #b8162c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.sc-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--a-ink-2);
  max-width: 460px;
  margin-bottom: 28px;
}

/* decorative shipment card */
.sc-card {
  background: #fff;
  border: 1px solid var(--a-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  padding: 16px 18px 14px;
  margin-bottom: 26px;
  max-width: 460px;
}
.sc-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sc-card-ico {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--a-brand-wash); color: var(--a-brand); font-size: 14px;
}
.sc-card-title { font-size: 13.5px; font-weight: 700; color: var(--a-ink); }
.sc-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e9f1fc;
  color: #1f5fb4;
  font-size: 11.5px;
  font-weight: 700;
}
.sc-pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: sc-pulse 1.6s ease-in-out infinite;
}
.sc-route { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sc-place {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--a-ink); white-space: nowrap;
}
.sc-place i { color: var(--a-muted); font-size: 11px; }
.sc-globe {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  filter: drop-shadow(0 4px 8px rgba(35, 55, 122, 0.18));
}
.sc-globe svg { display: block; width: 100%; height: 100%; }
.sc-globe-spin { animation: sc-spin 18s linear infinite; }
.sc-globe-pin {
  fill: var(--a-accent); stroke: #fff; stroke-width: 0.7;
  transform-box: fill-box; transform-origin: center;
  animation: sc-ping 1.8s ease-in-out infinite;
}
@keyframes sc-spin { from { transform: translateX(-68px); } to { transform: translateX(0); } }
@keyframes sc-ping { 50% { transform: scale(1.4); } }
.sc-track {
  position: relative; flex: 1; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #d6dbe6 0 6px, transparent 6px 11px);
}
.sc-track-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 62%;
  border-radius: 4px; background: linear-gradient(90deg, #23377a, #b8162c);
}
.sc-vessel {
  position: absolute; top: 50%; left: 62%;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--a-accent); font-size: 11px;
  border: 1.5px solid rgba(184, 22, 44, 0.35);
  box-shadow: 0 4px 10px rgba(184, 22, 44, 0.2);
  animation: sc-bob 3s ease-in-out infinite;
}
.sc-stages {
  list-style: none; margin: 0; padding: 12px 0 0;
  border-top: 1px dashed var(--a-border);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.sc-stages li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--a-muted); text-align: center;
}
.sc-stage-dot {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px;
  background: #fff; border: 1.5px solid var(--a-border-2);
}
.sc-stages li.done { color: var(--a-ink-2); }
.sc-stages li.done .sc-stage-dot { background: #e6f5ec; border-color: #9fd6b6; color: var(--a-good); }
.sc-stages li.current { color: var(--a-ink); }
.sc-stages li.current .sc-stage-dot {
  border-color: var(--a-accent);
  background: radial-gradient(circle, var(--a-accent) 0 4px, #fff 4.5px);
  box-shadow: 0 0 0 4px rgba(184, 22, 44, 0.12);
}

.sc-features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px;
  max-width: 520px;
}
.sc-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.45; color: var(--a-ink-2);
}
.sc-feature-ico {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--a-border);
  color: var(--a-brand); font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.sc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; color: var(--a-muted);
}
.sc-foot i { margin-right: 4px; }

@keyframes sc-pulse { 50% { opacity: 0.35; } }
@keyframes sc-bob { 50% { transform: translateY(-3px); } }

/* ---------- Card header ---------- */
.auth-head { margin-bottom: 24px; }
.auth-head h1 {
  font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em;
  color: var(--a-ink); margin-bottom: 6px;
}
.auth-head p { font-size: 14.5px; color: var(--a-ink-2); line-height: 1.55; }
.auth-head--center { text-align: center; }
.auth-badge {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 24px; color: var(--a-brand);
  background: linear-gradient(145deg, #eef1fa, #f8f9fd);
  border: 1px solid var(--a-border);
  box-shadow: 0 8px 20px rgba(35, 55, 122, 0.10);
}
.auth-badge--good { color: var(--a-good); background: linear-gradient(145deg, #e3f4ea, #f4fbf7); box-shadow: 0 8px 20px rgba(10, 143, 77, 0.12); }
.auth-badge--warn { color: var(--a-warn); background: linear-gradient(145deg, #fdf1df, #fffaf2); box-shadow: 0 8px 20px rgba(199, 119, 0, 0.12); }

.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin: -6px 0 18px;
  padding: 4px 8px 4px 4px;
  background: none; border: 0; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--a-ink-2);
  text-decoration: none; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.back-link:hover { color: var(--a-brand); background: var(--a-soft); }

/* ---------- Fields ---------- */
.field { margin-bottom: 16px; }
.field-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 7px;
  font-size: 13px; font-weight: 600; color: var(--a-ink);
}
.field-label .opt { font-weight: 500; color: var(--a-muted); font-size: 12px; }
.field-hint { margin-top: 6px; font-size: 12px; color: var(--a-muted); line-height: 1.45; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { min-width: 0; }

.control { position: relative; }
.control > .ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--a-muted); font-size: 14px; pointer-events: none;
  transition: color 0.15s;
}
.control:focus-within > .ico { color: var(--a-brand); }
.input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  background: var(--a-surface);
  border: 1px solid var(--a-border-2);
  border-radius: var(--a-radius);
  font-size: 15px;
  color: var(--a-ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
          appearance: none;
}
.input::placeholder { color: #a3abbb; }
.input:hover { border-color: #c2c9d7; }
.input:focus { border-color: var(--a-brand); box-shadow: var(--a-ring); }
.input.plain { padding-left: 14px; }
.input.has-action { padding-right: 48px; }
.input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--a-ink); }
.input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px #fff inset, var(--a-ring); }
select.input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%238a94a6' d='M6 8.5L1.5 4h9z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 9px;
  color: var(--a-muted); font-size: 14px; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.input-action:hover { color: var(--a-brand); background: var(--a-soft); }
.caps-hint {
  display: flex; align-items: center; gap: 6px;
  margin-top: 7px; font-size: 12px; font-weight: 600; color: var(--a-warn);
}

.row-between {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -4px 0 22px;
}
.link {
  background: none; border: 0; padding: 0;
  font-size: 13px; font-weight: 600; color: var(--a-brand);
  text-decoration: none; cursor: pointer;
}
.link:hover { color: var(--a-accent); text-decoration: underline; text-underline-offset: 3px; }
.link:disabled { color: var(--a-muted); cursor: default; text-decoration: none; }
.link--muted { color: var(--a-ink-2); font-weight: 500; }

/* password strength */
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bars span { height: 4px; border-radius: 4px; background: var(--a-border); transition: background 0.2s; }
.pw-label { min-width: 64px; text-align: right; font-size: 12px; font-weight: 600; color: var(--a-muted); }
.pw-meter[data-score="1"] .pw-bars span:nth-child(-n+1) { background: var(--a-bad); }
.pw-meter[data-score="2"] .pw-bars span:nth-child(-n+2) { background: var(--a-warn); }
.pw-meter[data-score="3"] .pw-bars span:nth-child(-n+3) { background: #2a78d6; }
.pw-meter[data-score="4"] .pw-bars span { background: var(--a-good); }
.pw-meter[data-score="1"] .pw-label { color: var(--a-bad); }
.pw-meter[data-score="2"] .pw-label { color: var(--a-warn); }
.pw-meter[data-score="3"] .pw-label { color: #2a78d6; }
.pw-meter[data-score="4"] .pw-label { color: var(--a-good); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 20px;
  border-radius: var(--a-radius);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn-block { width: 100%; }
.btn-primary {
  background: var(--a-cta);
  color: #fff;
  box-shadow: 0 6px 16px rgba(184, 22, 44, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(184, 22, 44, 0.28); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-secondary { background: #fff; border-color: var(--a-border-2); color: var(--a-ink); }
.btn-secondary:hover:not(:disabled) { border-color: #c2c9d7; background: var(--a-soft); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, .link:focus-visible, .back-link:focus-visible, .auth-lang a:focus-visible,
.input-action:focus-visible, .choice:has(input:focus-visible), .tile:focus-visible, .seg button:focus-visible, .drop:focus-visible {
  outline: 2px solid rgba(35, 55, 122, 0.5);
  outline-offset: 2px;
}
.btn .spinner { display: none; }
.btn.is-busy .spinner { display: inline-block; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn-row .btn-secondary { flex: 0 0 auto; min-width: 110px; }

/* ---------- Divider / footer link ---------- */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 16px;
  font-size: 12px; font-weight: 500; color: var(--a-muted);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--a-border); }
.alt-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px;
  border: 1px solid var(--a-border-2);
  border-radius: var(--a-radius);
  font-size: 14px; font-weight: 600; color: var(--a-ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.alt-cta i { color: var(--a-brand); }
.alt-cta:hover { border-color: var(--a-brand); color: var(--a-brand); background: #f8f9fe; }

/* ---------- Alerts ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--a-radius);
  font-size: 13.5px; line-height: 1.5;
  animation: a-in 0.25s ease;
}
.alert > i { margin-top: 3px; flex-shrink: 0; }
.alert-body { flex: 1; min-width: 0; }
.alert-error { background: #fdf2f3; border: 1px solid #f5cfd5; color: #8f1d2c; }
.alert-success { background: #ecf8f1; border: 1px solid #bfe5cf; color: #0b6b3b; }
.alert-close {
  background: none; border: 0; padding: 2px 4px; margin: -2px -4px 0 0;
  color: inherit; opacity: 0.55; cursor: pointer; border-radius: 6px;
}
.alert-close:hover { opacity: 1; }
.alert .contact-line { display: block; margin-top: 4px; }
.alert .contact-line i { width: 16px; }
@keyframes a-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- OTP ---------- */
.otp-dest { text-align: center; margin-bottom: 22px; }
.otp-dest small { display: block; font-size: 13px; color: var(--a-ink-2); margin-bottom: 2px; }
.otp-dest strong { font-size: 15.5px; color: var(--a-ink); font-weight: 700; letter-spacing: 0.01em; word-break: break-all; }
.otp { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.otp input {
  width: 50px; height: 58px; padding: 0;
  text-align: center;
  font-size: 22px; font-weight: 700; color: var(--a-ink);
  background: var(--a-surface);
  border: 1px solid var(--a-border-2);
  border-radius: var(--a-radius);
  outline: none;
  caret-color: var(--a-accent);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.otp input:focus { border-color: var(--a-brand); box-shadow: var(--a-ring); }
.otp input.filled { background: #f6f8fd; border-color: #b9c3df; }
.otp.has-error input { border-color: #eaa3ad; animation: a-shake 0.35s; }
.otp-sep { align-self: center; width: 10px; height: 2px; background: var(--a-border-2); border-radius: 2px; }
@keyframes a-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.otp-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.stepper li {
  display: flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 12px; font-weight: 600; color: var(--a-muted); white-space: nowrap;
}
.stepper li + li { flex: 1 1 auto; }
.stepper li.active { flex-shrink: 0; }
.stepper li + li::before {
  content: ""; flex: 1 1 12px; min-width: 10px; height: 2px; border-radius: 2px; background: var(--a-border);
}
.step-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stepper li:not(.active) .step-label { display: none; }
.stepper li.done + li::before { background: #9fd6b6; }
.step-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--a-border-2); color: var(--a-muted);
  transition: all 0.2s;
}
.step-dot .fa-check { display: none; font-size: 11px; }
.stepper li.active { color: var(--a-ink); }
.stepper li.active .step-dot { background: var(--a-brand); border-color: var(--a-brand); color: #fff; box-shadow: var(--a-ring); }
.stepper li.done { color: var(--a-ink-2); }
.stepper li.done .step-dot { background: #e6f5ec; border-color: #9fd6b6; color: var(--a-good); }
.stepper li.done .step-dot .n { display: none; }
.stepper li.done .step-dot .fa-check { display: block; }

/* ---------- Choice cards (radio) ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--a-border-2);
  border-radius: var(--a-radius);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.choice:hover { border-color: #c2c9d7; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-ico {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--a-brand-wash); color: var(--a-brand); font-size: 15px;
}
.choice-text { flex: 1; min-width: 0; line-height: 1.3; }
.choice-title { display: block; font-size: 14px; font-weight: 700; color: var(--a-ink); }
.choice-sub { display: block; font-size: 12px; color: var(--a-ink-2); margin-top: 2px; }
.choice-tick {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--a-border-2); background: #fff;
  transition: all 0.15s;
}
.choice.active { border-color: var(--a-brand); background: #f7f9fe; box-shadow: 0 0 0 3px rgba(35, 55, 122, 0.10); }
.choice.active .choice-tick { border-color: var(--a-brand); background: radial-gradient(circle, var(--a-brand) 0 4px, #fff 4.5px); }

/* ---------- Registration specifics ---------- */
.tiles { display: grid; gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  padding: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--a-border-2);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tile:hover { border-color: var(--a-brand); box-shadow: 0 10px 24px rgba(35, 55, 122, 0.10); transform: translateY(-1px); }
.tile-ico {
  flex: 0 0 50px; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 19px;
  background: var(--a-brand-wash); color: var(--a-brand);
}
.tile--b2b .tile-ico { background: rgba(184, 22, 44, 0.08); color: var(--a-accent); }
.tile-text { flex: 1; min-width: 0; }
.tile-title { display: block; font-size: 15.5px; font-weight: 700; color: var(--a-ink); line-height: 1.3; }
.tile-sub { display: block; font-size: 13px; color: var(--a-ink-2); margin-top: 3px; }
.tile-go { color: var(--a-muted); font-size: 14px; transition: transform 0.15s, color 0.15s; }
.tile:hover .tile-go { color: var(--a-brand); transform: translateX(3px); }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 6px;
  background: #eef1f6;
  border-radius: 13px;
}
.seg button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 6px 10px;
  border: 0; border-radius: 10px;
  background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--a-ink-2);
  cursor: pointer; line-height: 1.25;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.seg button:hover { color: var(--a-ink); }
.seg button.active { background: #fff; color: var(--a-brand); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.10), 0 1px 2px rgba(16, 24, 40, 0.06); }

.form-section {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--a-muted);
}
.form-section::after { content: ""; flex: 1; height: 1px; background: var(--a-border); }

/* ID upload */
.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 124px;
  padding: 14px 10px;
  border: 1.5px dashed #cfd5e2;
  border-radius: var(--a-radius);
  background: #fafbfd;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.dragover { border-color: var(--a-brand); background: #f5f7fd; }
.drop.required { border-color: rgba(184, 22, 44, 0.45); background: #fff8f9; }
.drop-ico {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--a-border);
  color: var(--a-brand); font-size: 15px;
}
.drop-title { font-size: 13px; font-weight: 700; color: var(--a-ink); }
.drop-sub { font-size: 11.5px; color: var(--a-muted); }
.drop-preview { position: absolute; inset: 0; display: none; }
.drop-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drop.has-file { border-style: solid; border-color: var(--a-brand); }
.drop.has-file .drop-preview { display: block; }
.drop-actions {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  display: none; gap: 6px; justify-content: center;
}
.drop.has-file .drop-actions { display: flex; }
.drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px;
  border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.18);
  font-size: 12px; font-weight: 600; color: var(--a-ink);
  cursor: pointer;
}
.drop-btn:hover { color: var(--a-brand); }
.drop-btn--danger { color: #b42318; }
.drop-btn--danger:hover { color: #8f1d2c; }

.consent {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px;
  margin: 6px 0 18px;
  background: var(--a-soft);
  border: 1px solid var(--a-border);
  border-radius: var(--a-radius);
  cursor: pointer;
  font-size: 13px; line-height: 1.5; color: var(--a-ink-2);
}
.consent input {
  flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0;
  accent-color: var(--a-brand); cursor: pointer;
}
.consent a { font-weight: 600; text-underline-offset: 2px; }

/* intl-tel-input */
.iti { width: 100%; display: block; }
.iti--separate-dial-code .iti__selected-flag {
  background: var(--a-soft);
  border-right: 1px solid var(--a-border);
  border-radius: var(--a-radius) 0 0 var(--a-radius);
  padding: 0 10px 0 12px;
}
.iti--separate-dial-code .iti__selected-flag:hover { background: #eef1f6; }
.iti__selected-dial-code { font-size: 14px; font-weight: 600; color: var(--a-ink); }
.iti .input { padding-left: 98px !important; }
.iti__country-list {
  border-radius: var(--a-radius);
  border: 1px solid var(--a-border);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.14);
  max-height: 260px;
  font-size: 13.5px;
}
.iti__country-list .iti__country { padding: 8px 12px; }
.iti__country-list .iti__country--highlight { background: var(--a-brand-wash); }
.iti__country-search { padding: 8px; position: sticky; top: 0; background: #fff; z-index: 2; border-bottom: 1px solid var(--a-border); }
.iti__country-search input {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--a-border-2); border-radius: 8px;
  font-size: 13px; outline: none;
}
.iti__country-search input:focus { border-color: var(--a-brand); }

/* manager card on the pending screen */
.manager-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--a-soft);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  margin-bottom: 18px;
}
.manager-card img {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
}
.manager-name { font-size: 15px; font-weight: 700; color: var(--a-ink); margin-bottom: 6px; }
.manager-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 3px; }
.manager-line i { width: 14px; color: var(--a-brand); font-size: 12px; }
.manager-line a { color: var(--a-ink); font-weight: 500; text-decoration: none; word-break: break-all; }
.manager-line a:hover { color: var(--a-brand); }

/* consent document modal */
.doc-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(31, 42, 68, 0.45);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.doc-modal.active { display: flex; animation: a-fade 0.2s ease; }
.doc-modal-box {
  width: 100%; max-width: 960px; height: 85vh; max-height: 780px;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.30);
}
.doc-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--a-border);
}
.doc-modal-title { font-size: 15px; font-weight: 700; color: var(--a-ink); display: flex; align-items: center; gap: 10px; }
.doc-modal-title i { color: var(--a-brand); }
.doc-modal-actions { display: flex; gap: 8px; }
.doc-modal-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.doc-modal-body { flex: 1; background: var(--a-soft); }
.doc-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
@keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }

/* view switching inside the card */
.auth-view { animation: a-view 0.28s ease; }
@keyframes a-view { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-height: 820px) and (min-width: 1100px) {
  .sc-features { display: none; }
}
@media (max-height: 680px) and (min-width: 1100px) {
  .sc-card { display: none; }
}
@media (max-width: 1280px) {
  .auth-showcase { padding: 32px 34px 24px; }
  .sc-features { grid-template-columns: 1fr; }
}
@media (max-width: 1099px) {
  .auth-shell { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .auth-showcase { display: none; }
  .auth-main { padding: 16px 20px; }
  .auth-topbar { justify-content: space-between; }
  .auth-topbar .auth-mobile-logo { display: block; }
}
@media (max-width: 560px) {
  body { background: var(--a-surface); }
  .auth-main { padding: 12px 16px 20px; }
  .auth-center { justify-content: flex-start; padding: 18px 0 8px; }
  .auth-card { border: 0; box-shadow: none; padding: 4px 0 0; border-radius: 0; }
  .auth-head h1 { font-size: 23px; }
  .field-row, .choices, .drops { grid-template-columns: 1fr; gap: 0 12px; }
  .choices { gap: 10px; }
  .drops { gap: 10px; }
  .otp { gap: 7px; }
  .otp input { width: 44px; height: 52px; font-size: 20px; }
  .otp-sep { display: none; }
  .btn-row { flex-direction: column-reverse; }
  .btn-row .btn, .btn-row .btn-secondary { flex: none; width: 100%; min-width: 0; }
  .doc-modal { padding: 0; }
  .doc-modal-box { height: 100%; max-height: none; border-radius: 0; }
  .doc-modal-actions .btn span { display: none; }
}
@media (max-width: 360px) {
  .otp input { width: 40px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
