/* StrideXPro — Auth screens shared stylesheet
   Design tokens: navy #06182F · royal #1B4FA0 · saffron #FF9933 · ink #10151C
   Font: Archivo · Radius: 0 everywhere · Borders: 2px · Shadows: none
*/

/* ─── RESET ──────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', sans-serif;
  color: #10151C;
  background: #F4F5F7;
  min-height: 100vh;
}

a { color: #1B4FA0; text-decoration: none; }
a:hover { color: #FF9933; }
*:focus-visible { outline: 2px solid #FF9933; outline-offset: 2px; }

/* ─── NAV ────────────────────────────────────────────────── */

.site-header { background: #06182F; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 48px;
  border-bottom: 2px solid #10305A;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.nav-logo-img { height: 80px; width: auto; display: block; }

.nav-location {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9CC0F2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a { color: #C6D6EE; }
.nav-links a:hover { color: #FF9933; }

.btn-nav {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 12px 20px;
  color: #06182F;
  background: #FF9933;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-nav:hover { background: #FFB060; color: #06182F; }

.btn-nav-outline {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 12px 20px;
  color: #C6D6EE;
  background: transparent;
  border: 1px solid #10305A;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-nav-outline:hover { background: #10305A; color: #FFFFFF; }

/* ─── PAGE WRAPPER ───────────────────────────────────────── */

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 80px;
  min-height: calc(100vh - 114px);
}

/* ─── CARD ───────────────────────────────────────────────── */

.card {
  width: 452px;
  max-width: 100%;
  border: 2px solid #10151C;
  background: #F4F5F7;
}

/* ─── CARD HEADER BAND ───────────────────────────────────── */

.card-header {
  padding: 22px 26px;
}

.card-header-navy  { background: #06182F; }
.card-header-blue  { background: #1B4FA0; }
.card-header-white {
  background: #FFFFFF;
  border-bottom: 2px solid #10151C;
}

.wordmark {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.card-title {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.1;
  color: #FFFFFF;
}

.card-subtitle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.subtitle-navy { color: #C6D6EE; }
.subtitle-blue { color: #DCE8FA; }

.context-line {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #5A6472;
  margin-bottom: 10px;
}

/* ─── STEP TABS ──────────────────────────────────────────── */

.step-tabs {
  display: grid;
  border-bottom: 2px solid #10151C;
}

.step-tabs-2 { grid-template-columns: repeat(2, 1fr); }
.step-tabs-3 { grid-template-columns: repeat(3, 1fr); }

.step-tab {
  padding: 10px 14px;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: #FFFFFF;
  border: 0;
  border-right: 2px solid #DDE2E9;
  border-bottom: 3px solid #DDE2E9;
  cursor: pointer;
  color: #5A6472;
  text-align: left;
  transition: color 0.12s, border-color 0.12s;
}
.step-tab:last-child { border-right: 0; }
.step-tab:hover { color: #1B4FA0; }

.step-tab.active,
.step-tab.completed {
  border-bottom-color: #1B4FA0;
  color: #1B4FA0;
}

/* ─── CARD BODY ──────────────────────────────────────────── */

.card-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── STEP PANES (JS-toggled) ────────────────────────────── */

.step-pane { display: none; }
.step-pane.active { display: contents; }

/* ─── SECTION LABEL ──────────────────────────────────────── */

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1B4FA0;
}

/* ─── DIVIDER ────────────────────────────────────────────── */

.divider {
  border: 0;
  border-top: 2px solid #10151C;
  margin: 4px 0;
}

/* ─── FIELDS ─────────────────────────────────────────────── */

.field {
  display: flex;
  flex-direction: column;
}

.field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #5A6472;
  margin-bottom: 8px;
}

.field-label .optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}

.field-input {
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  background: #FFFFFF;
  border: 2px solid #DDE2E9;
  color: #10151C;
  width: 100%;
  outline: none;
  transition: border-color 0.12s;
}
.field-input::placeholder { color: #8A94A3; }
.field-input:focus { outline: 2px solid #FF9933; outline-offset: 2px; }
.field-input.error { border-color: #C62828; }
.field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #C62828;
}

/* ─── FIELD ROWS ─────────────────────────────────────────── */

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.row-1-4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.row-otp {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

/* ─── SEGMENTED CONTROL ──────────────────────────────────── */

.segmented {
  display: grid;
  gap: 2px;
  background: #10151C;
  border: 2px solid #10151C;
}

.segmented-3 { grid-template-columns: repeat(3, 1fr); }
.segmented-4 { grid-template-columns: repeat(4, 1fr); }

.seg-btn {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Archivo', sans-serif;
  background: #FFFFFF;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #10151C;
  transition: background 0.12s, color 0.12s;
}
.seg-btn:hover { background: #F0F4FA; }
.seg-btn.selected {
  background: #1B4FA0;
  color: #FFFFFF;
}

/* ─── BUTTONS ────────────────────────────────────────────── */

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #1B4FA0;
  color: #FFFFFF;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: #2E7BE0; color: #FFFFFF; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-saffron {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #FF9933;
  color: #06182F;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-saffron:hover { background: #FFB060; color: #06182F; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: transparent;
  color: #10151C;
  border: 2px solid #10151C;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
}
.btn-secondary:hover { background: #FFFFFF; }
.btn-secondary:disabled {
  color: #8A94A3;
  border-color: #DDE2E9;
  cursor: not-allowed;
}

/* ─── MINOR NOTICE ───────────────────────────────────────── */

.minor-notice {
  background: #FFF3E6;
  border: 2px solid #FF9933;
  padding: 10px 14px;
  font-size: 12px;
  color: #6B3A00;
  line-height: 1.5;
}

.minor-notice strong { font-weight: 700; }

/* ─── ADD LINK ───────────────────────────────────────────── */

.add-link {
  font-size: 12px;
  color: #5A6472;
  background: none;
  border: none;
  font-family: 'Archivo', sans-serif;
  cursor: pointer;
  text-align: left;
  padding: 0;
  text-decoration: none;
}
.add-link:hover { color: #1B4FA0; }

/* ─── CARD FOOTER LINE ───────────────────────────────────── */

.card-footer-line {
  padding: 14px 26px 20px;
  border-top: 2px solid #DDE2E9;
  font-size: 13px;
  color: #5A6472;
  text-align: center;
}
.card-footer-line a { color: #1B4FA0; }
.card-footer-line a:hover { color: #FF9933; }

/* ─── STATUS STRIP ───────────────────────────────────────── */

.status-strip {
  background: #FFFFFF;
  border-top: 2px solid #10151C;
  padding: 18px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Archivo', sans-serif;
  letter-spacing: 0.6px;
}

.badge-pending { background: #FF9933; color: #06182F; }
.badge-48h     { background: #10151C; color: #FFFFFF; }

.status-text {
  font-size: 13px;
  line-height: 1.55;
  color: #5A6472;
}
.status-text strong { color: #10151C; font-weight: 700; }

/* ─── SMS PREVIEW ────────────────────────────────────────── */

.sms-preview {
  width: 452px;
  max-width: 100%;
  margin-top: 12px;
  background: #FFFFFF;
  border: 2px solid #DDE2E9;
  padding: 16px 18px;
}

.sms-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #5A6472;
  margin-bottom: 8px;
}

.sms-text {
  font-size: 13px;
  line-height: 1.55;
  color: #10151C;
}

.sms-link { color: #1B4FA0; font-weight: 600; }

/* ─── INVITE CODE ────────────────────────────────────────── */

.invite-code-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.invite-box {
  background: #FFFFFF;
  border: 2px solid #DDE2E9;
  padding: 12px 0 12px 12px;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Archivo', sans-serif;
  color: #10151C;
  text-transform: uppercase;
  outline: none;
  width: 100%;
  caret-color: #1B4FA0;
}
.invite-box:focus  { border-color: #1B4FA0; }
.invite-box.filled { border-color: #10151C; }

.helper-text {
  font-size: 12px;
  color: #5A6472;
  line-height: 1.5;
}

/* ─── NOTE ───────────────────────────────────────────────── */

.note {
  font-size: 12px;
  color: #5A6472;
  line-height: 1.55;
}

/* ─── ACCESS LIST ────────────────────────────────────────── */

.access-list {
  background: #FFFFFF;
  border: 2px solid #10151C;
}

.access-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 2px solid #DDE2E9;
  gap: 12px;
}
.access-row:last-child { border-bottom: 0; }

.access-name  { font-weight: 700; }
.access-level { font-weight: 700; color: #1B4FA0; white-space: nowrap; }
.access-level-muted { font-weight: 700; color: #5A6472; white-space: nowrap; }

/* ─── CONSENT CHECKLIST ──────────────────────────────────── */

.consent-list {
  background: #FFFFFF;
  border: 2px solid #10151C;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 2px solid #DDE2E9;
  align-items: start;
}
.consent-row:last-child { border-bottom: 0; }

.consent-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #DDE2E9;
  background: #FFFFFF;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: border-color 0.12s, background 0.12s;
}
.consent-checkbox:checked {
  background: #1B4FA0;
  border-color: #1B4FA0;
}
.consent-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 13px;
  border: 2px solid #FFFFFF;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.consent-checkbox:focus-visible { outline: 2px solid #FF9933; outline-offset: 2px; }

.consent-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.consent-desc {
  font-size: 12px;
  color: #5A6472;
  line-height: 1.5;
}

/* ─── CHIP INPUT ─────────────────────────────────────────── */

.chip-input-box {
  background: #FFFFFF;
  border: 2px solid #DDE2E9;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 48px;
  cursor: text;
}
.chip-input-box:focus-within { outline: 2px solid #FF9933; outline-offset: 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E6EEF9;
  color: #10305A;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Archivo', sans-serif;
  padding: 6px 10px;
}

.chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #10305A;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}
.chip-remove:hover { color: #C62828; }

.chip-input-field {
  border: none;
  outline: none;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  color: #10151C;
  flex: 1;
  min-width: 160px;
  background: transparent;
}
.chip-input-field::placeholder { color: #8A94A3; }

/* ─── ROLE SELECTOR (signup.html) ────────────────────────── */

.role-chooser-header {
  width: 452px;
  max-width: 100%;
  background: #06182F;
  border: 2px solid #10151C;
  border-bottom: 0;
  padding: 22px 26px;
}

.role-chooser-header .wordmark { color: #FFFFFF; }
.role-chooser-header .card-title { color: #FFFFFF; }
.role-chooser-header .card-subtitle { color: #C6D6EE; }

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #10151C;
  border: 2px solid #10151C;
  border-top: 0;
  width: 452px;
  max-width: 100%;
}

.role-card {
  background: #FFFFFF;
  padding: 24px 22px;
  text-decoration: none;
  color: #10151C;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 3px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.role-card:hover {
  background: #F0F4FA;
  border-bottom-color: #1B4FA0;
  color: #10151C;
}

.role-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1B4FA0;
}

.role-card-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.role-card-desc {
  font-size: 12px;
  color: #5A6472;
  line-height: 1.5;
  margin-top: 2px;
}

.role-card-arrow {
  margin-top: 10px;
  font-size: 18px;
  color: #1B4FA0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */

.site-footer {
  background: #06182F;
  color: #7E93B3;
  padding: 20px 48px;
  font-size: 12px;
  letter-spacing: 0.4px;
  margin-top: auto;
}

/* ─── PAGE WRAPPER (footer at bottom) ───────────────────── */

body {
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 520px) {
  .auth-page { padding: 24px 16px 60px; }
  .nav { padding: 14px 20px; }
  .nav-logo-img { height: 44px; }
  .sms-preview { width: 100%; }
  .role-chooser-header,
  .role-grid { width: 100%; }
}

@media (max-width: 400px) {
  .row-2,
  .row-1-4   { grid-template-columns: 1fr; }
  .row-otp   { grid-template-columns: 1fr; }
  .invite-code-grid { gap: 4px; }
  .role-grid { grid-template-columns: 1fr; }
  .segmented-4 { grid-template-columns: repeat(2, 1fr); }
}
