/* =========================================================
   US Health Testing – Auth screens (login / register / forgot)
   Split layout: brand panel (left) + form card (right)
   Everything is prefixed .auth- so it won't clash with site CSS.
   Change the colours in :root to match your theme.
   ========================================================= */
:root {
  --auth-primary: #0036ad;        /* links, active step, focus (matches nav blue) */
  --auth-primary-dark: #002a8a;
  --auth-primary-soft: #eaf0ff;
  --auth-navy: #102a4f;           /* brand panel background */
  --auth-navy-dark: #0c2142;
  --auth-accent: #f5a623;         /* amber: eyebrow text + primary button */
  --auth-accent-dark: #e0921a;
  --auth-accent-ink: #1a2238;     /* text on amber button */
  --auth-check: #34c27a;          /* benefit check marks */
  --auth-ink: #14213d;
  --auth-muted: #5b6577;
  --auth-border: #d9dfeb;
  --auth-bg: #f5f7fb;
  --auth-danger: #c62828;
  --auth-success: #1b8a4b;
  --auth-radius: 12px;
}

.auth-section { background: var(--auth-bg); padding: 40px 16px; }
.auth-shell {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 33, 61, .10);
}
.auth-shell.auth-shell--narrow { max-width: 960px; grid-template-columns: 1fr 1fr; }

/* ---------- Left brand panel ---------- */
.auth-brand {
  background: linear-gradient(170deg, var(--auth-navy) 0%, var(--auth-navy-dark) 100%);
  color: #fff; padding: 48px 40px; display: flex; flex-direction: column; gap: 20px;
}
.auth-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--auth-accent); margin: 0;
}
.auth-brand h2 { font-size: 32px; line-height: 1.2; margin: 0; color: #fff; }
.auth-brand p  { margin: 0; opacity: .9; line-height: 1.55; }
.auth-benefits { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-benefits li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.auth-benefits li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52,194,122,.16); color: var(--auth-check); display: grid; place-items: center; font-size: 13px;
}
.auth-note {
  margin-top: auto; background: rgba(255,255,255,.07); border-radius: var(--auth-radius);
  padding: 16px 18px; font-size: 14px; line-height: 1.5;
}
.auth-note strong { display: block; margin-bottom: 4px; }

/* ---------- Right form panel ---------- */
.auth-panel { padding: 48px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-tag {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--auth-primary);
  padding: 0; margin-bottom: 10px;
}
.auth-title { font-size: 28px; color: var(--auth-ink); margin: 0 0 6px; }
.auth-sub   { color: var(--auth-muted); margin: 0 0 24px; }

/* ---------- Stepper ---------- */
.auth-steps { display: flex; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.auth-steps li {
  flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 600; color: var(--auth-muted);
}
.auth-steps .num {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--auth-border);
  display: grid; place-items: center; font-size: 12px; background: #fff; flex: none;
}
.auth-steps li.active { color: var(--auth-primary); }
.auth-steps li.active .num { border-color: var(--auth-primary); background: var(--auth-primary); color: #fff; }
.auth-steps li.done .num { border-color: var(--auth-success); background: var(--auth-success); color: #fff; }
.auth-progress { height: 4px; background: var(--auth-border); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.auth-progress > span { display: block; height: 100%; width: 0; background: var(--auth-primary); transition: width .25s; }
.auth-step-label { font-size: 13px; color: var(--auth-muted); margin: 0 0 20px; }

/* ---------- Form controls ---------- */
.auth-form { display: block; }
.auth-step { display: none; }
.auth-step.active { display: block; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.auth-field label { font-size: 13px; font-weight: 600; color: var(--auth-ink); margin-bottom: 6px; }
.auth-field input, .auth-field select {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px; color: var(--auth-ink);
  border: 1px solid var(--auth-border); border-radius: 10px; background: #fff; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus, .auth-field select:focus {
  outline: none; border-color: var(--auth-primary); box-shadow: 0 0 0 3px rgba(0, 54, 173, .15);
}
.auth-field input[readonly] { background: var(--auth-bg); color: var(--auth-muted); }
.auth-field.has-error input, .auth-field.has-error select { border-color: var(--auth-danger); }
.auth-error { color: var(--auth-danger); font-size: 12px; margin-top: 4px; min-height: 0; }

.auth-pw { position: relative; }
.auth-pw input { padding-right: 56px; }
.auth-pw button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0;
  background: none; color: var(--auth-primary); font-size: 13px; font-weight: 600; cursor: pointer;
}

.auth-actions { display: flex; gap: 12px; margin-top: 8px; }
.auth-btn {
  flex: 1; height: 48px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.auth-btn--primary { background: var(--auth-accent); color: var(--auth-accent-ink); }
.auth-btn--primary:hover { background: var(--auth-accent-dark); }
.auth-btn--ghost { background: #fff; color: var(--auth-ink); border-color: var(--auth-border); flex: 0 0 110px; }
.auth-btn--ghost:hover { background: var(--auth-bg); }

.auth-foot { text-align: center; color: var(--auth-muted); font-size: 14px; margin: 20px 0 0; }
.auth-foot a, .auth-link { color: var(--auth-primary); font-weight: 600; text-decoration: none; }
.auth-foot a:hover, .auth-link:hover { text-decoration: underline; }
.auth-fine { text-align: center; color: var(--auth-muted); font-size: 12px; margin: 8px 0 0; }
.auth-inline { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth-shell, .auth-shell.auth-shell--narrow { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 24px; }
  .auth-brand h2 { font-size: 24px; }
  .auth-note { display: none; }
  .auth-panel { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .auth-row { grid-template-columns: 1fr; gap: 0; }
  .auth-steps .label { display: none; }
}


/* =========================================================
   Testing Agency (partner) registration page
   ========================================================= */
.agency-wrap { max-width: 1180px; margin: 0 auto; }

.agency-hero {
  background: linear-gradient(170deg, var(--auth-navy) 0%, var(--auth-navy-dark) 100%);
  color: #fff; border-radius: 20px; padding: 40px 44px; margin-bottom: 24px;
}
.agency-hero .auth-eyebrow { margin-bottom: 10px; }
.agency-hero h1 { color: #fff; font-size: 34px; line-height: 1.2; margin: 0 0 10px; max-width: 820px; }
.agency-hero p  { margin: 0; font-size: 18px; opacity: .88; max-width: 760px; }

.agency-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.agency-content, .agency-form-card {
  background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(20, 33, 61, .08);
}
.agency-content { padding: 36px 40px; color: var(--auth-ink); }
.agency-content p { color: var(--auth-muted); line-height: 1.6; margin: 0 0 14px; }
.agency-content p strong { color: var(--auth-ink); }
.agency-content h3 { font-size: 22px; color: var(--auth-ink); margin: 30px 0 12px; }
.agency-content h3:first-of-type { margin-top: 24px; }
.agency-lead { font-size: 17px; color: var(--auth-ink) !important; }

.agency-ticks { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.agency-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--auth-ink); font-weight: 500; }
.agency-ticks li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: rgba(52,194,122,.16); color: var(--auth-check); display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.agency-callout {
  background: var(--auth-primary-soft); border-left: 4px solid var(--auth-accent);
  border-radius: 10px; padding: 14px 18px; color: var(--auth-ink) !important; font-weight: 600;
}

.agency-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.agency-card { border: 1px solid var(--auth-border); border-radius: var(--auth-radius); padding: 16px 18px; }
.agency-card strong { display: block; color: var(--auth-ink); margin-bottom: 4px; }
.agency-card p { margin: 0; font-size: 14px; }

.agency-form-card { padding: 32px 32px 28px; position: sticky; top: 24px; }
.agency-form-card .auth-title { font-size: 24px; }
.agency-form-card .auth-sub { margin-bottom: 20px; }
.agency-form-card .auth-field input.is-invalid,
.agency-form-card .auth-field select.is-invalid { border-color: var(--auth-danger); box-shadow: 0 0 0 3px rgba(198, 40, 40, .12); }
.agency-phone { display: flex; }
.agency-phone span {
  display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--auth-border); border-right: 0;
  border-radius: 10px 0 0 10px; background: var(--auth-bg); color: var(--auth-muted); font-weight: 600;
}
.agency-phone input { border-radius: 0 10px 10px 0; }

@media (max-width: 960px) {
  .agency-grid { grid-template-columns: 1fr; }
  .agency-form-card { position: static; order: -1; }
  .agency-hero { padding: 28px 24px; }
  .agency-hero h1 { font-size: 26px; }
  .agency-content { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .agency-ticks, .agency-cards { grid-template-columns: 1fr; }
  .agency-form-card { padding: 24px 20px; }
}
