/* SchoolTrack registration theme
   Keeps all public sign-up screens aligned with the navy application shell. */
#authApp[data-auth-mode="signup"] {
  --signup-accent: #f04445;
  --signup-accent-rgb: 240, 68, 69;
  color-scheme: dark;
  background: #101827;
}

#authApp[data-auth-mode="signup"][data-signup-role="parent"] {
  --signup-accent: #5faafa;
  --signup-accent-rgb: 95, 170, 250;
}

#authApp[data-auth-mode="signup"][data-signup-role="driver"] {
  --signup-accent: #42d3a7;
  --signup-accent-rgb: 66, 211, 167;
}

#authApp[data-auth-mode="signup"][data-signup-role="school"] {
  --signup-accent: #f04445;
  --signup-accent-rgb: 240, 68, 69;
}

#authApp[data-auth-mode="signup"] .auth-showcase {
  background:
    radial-gradient(circle at 88% 18%, rgba(95, 170, 250, .20), transparent 26%),
    radial-gradient(circle at 15% 78%, rgba(66, 211, 167, .14), transparent 30%),
    linear-gradient(145deg, #0b1422, #101d30 56%, #172a42);
}

#authApp[data-auth-mode="signup"] .auth-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--signup-accent-rgb), .14), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(95, 170, 250, .08), transparent 34%),
    #101827 !important;
}

#authApp[data-auth-mode="signup"] .auth-card {
  width: min(620px, 100%);
  padding: 28px;
  border: 1px solid #2f4159;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(27, 43, 65, .98), rgba(19, 32, 50, .98));
  box-shadow: 0 28px 70px rgba(2, 8, 18, .42), inset 0 1px 0 rgba(255, 255, 255, .035);
}

#authApp[data-auth-mode="signup"] .auth-card-head {
  margin-bottom: 22px;
}

#authApp[data-auth-mode="signup"] .auth-card-head .eyebrow {
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--signup-accent-rgb), .28);
  border-radius: 999px;
  color: var(--signup-accent);
  background: rgba(var(--signup-accent-rgb), .09);
  font-size: 10px;
  letter-spacing: .12em;
}

#authApp[data-auth-mode="signup"] .auth-card-head .eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signup-accent);
  box-shadow: 0 0 0 4px rgba(var(--signup-accent-rgb), .12);
}

#authApp[data-auth-mode="signup"] .auth-card-head h2 {
  margin-top: 12px;
  color: #f4f7fb;
}

#authApp[data-auth-mode="signup"] .auth-card-head p,
#authApp[data-auth-mode="signup"] .auth-footer {
  color: #9fb0c5;
}

#authApp[data-auth-mode="signup"] .required-check {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-inline-start: 7px;
  place-items: center;
  border: 1px solid #53647a;
  border-radius: 50%;
  color: transparent;
  vertical-align: -3px;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

#authApp[data-auth-mode="signup"] .required-check::after {
  content: "✓";
  font-size: 11px;
  font-weight: 800;
}

#authApp[data-auth-mode="signup"] [data-registration-field].is-complete .required-check,
#authApp[data-auth-mode="signup"] [data-map-picker].is-complete .map-overlay-badge::after,
#authApp[data-auth-mode="signup"] .upload-card.is-complete .upload-copy > strong::after {
  border-color: #36c98f;
  color: #061d16;
  background: #36c98f;
}

#authApp[data-auth-mode="signup"] [data-map-picker] .map-overlay-badge::after,
#authApp[data-auth-mode="signup"] .upload-card[data-document-upload].is-complete .upload-copy > strong::after {
  content: "";
}

#authApp[data-auth-mode="signup"] [data-map-picker].is-complete .map-overlay-badge::after,
#authApp[data-auth-mode="signup"] .upload-card.is-complete .upload-copy > strong::after {
  content: " ✓";
  color: #36c98f;
  font-weight: 800;
}

#authApp[data-auth-mode="signup"] .auth-tabs {
  border: 1px solid #2d4058;
  background: #0e1929;
}

#authApp[data-auth-mode="signup"] .auth-tab {
  color: #91a3b9;
}

#authApp[data-auth-mode="signup"] .auth-tab:hover {
  color: #e9f0f8;
  background: rgba(255, 255, 255, .035);
}

#authApp[data-auth-mode="signup"] .auth-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--signup-accent-rgb), .30), rgba(var(--signup-accent-rgb), .15));
  box-shadow: inset 0 0 0 1px rgba(var(--signup-accent-rgb), .34), 0 7px 20px rgba(1, 8, 18, .20);
}

#authApp[data-auth-mode="signup"] .step-dot {
  background: #30425a;
}

#authApp[data-auth-mode="signup"] .step-dot.is-active {
  background: var(--signup-accent);
  box-shadow: 0 0 12px rgba(var(--signup-accent-rgb), .24);
}

#authApp[data-auth-mode="signup"] .role-picker {
  gap: 14px;
}

#authApp[data-auth-mode="signup"] .role-card {
  border-color: #33465e;
  color: #eef4fb;
  background: linear-gradient(150deg, #1b2b42, #162438);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

#authApp[data-auth-mode="signup"] .role-card:nth-child(1) { --role-color: #5faafa; --role-rgb: 95, 170, 250; }
#authApp[data-auth-mode="signup"] .role-card:nth-child(2) { --role-color: #42d3a7; --role-rgb: 66, 211, 167; }
#authApp[data-auth-mode="signup"] .role-card:nth-child(3) { --role-color: #f04445; --role-rgb: 240, 68, 69; }

#authApp[data-auth-mode="signup"] .role-card:hover,
#authApp[data-auth-mode="signup"] .role-card:focus-visible {
  border-color: rgba(var(--role-rgb), .72);
  background: linear-gradient(150deg, rgba(var(--role-rgb), .15), #17273d 72%);
  box-shadow: 0 18px 36px rgba(2, 9, 19, .32), 0 0 0 3px rgba(var(--role-rgb), .10);
  outline: none;
}

#authApp[data-auth-mode="signup"] .role-card .role-icon {
  color: var(--role-color);
  background: rgba(var(--role-rgb), .13);
  box-shadow: inset 0 0 0 1px rgba(var(--role-rgb), .18);
}

#authApp[data-auth-mode="signup"] .role-card strong {
  color: #f4f7fb;
}

#authApp[data-auth-mode="signup"] .role-card span {
  color: #9fb0c5;
}

#authApp[data-auth-mode="signup"] .role-card .icon-arrow {
  color: var(--role-color);
}

#authApp[data-auth-mode="signup"] .registration-scroll {
  max-height: min(650px, calc(100vh - 278px));
  padding: 2px 9px 3px 2px;
  scrollbar-color: #52667e transparent;
}

#authApp[data-auth-mode="signup"] .registration-scroll::-webkit-scrollbar { width: 7px; }
#authApp[data-auth-mode="signup"] .registration-scroll::-webkit-scrollbar-track { background: transparent; }
#authApp[data-auth-mode="signup"] .registration-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #52667e; }

#authApp[data-auth-mode="signup"] .section-label {
  color: #e8eef6;
}

#authApp[data-auth-mode="signup"] .section-label > .icon {
  color: var(--signup-accent);
}

#authApp[data-auth-mode="signup"] .section-label::after {
  background: #33465e;
}

#authApp[data-auth-mode="signup"] .form-field label {
  color: #c7d3e1;
}

#authApp[data-auth-mode="signup"] .form-field label .required {
  color: #ff7b84;
}

#authApp[data-auth-mode="signup"] .input-wrap > .icon {
  color: #7f93aa;
}

#authApp[data-auth-mode="signup"] :is(input, select, textarea) {
  border-color: #3a4d66;
  color: #eef4fb;
  background: #0f1b2d;
}

#authApp[data-auth-mode="signup"] :is(input, textarea)::placeholder {
  color: #70849b;
}

#authApp[data-auth-mode="signup"] :is(input, select, textarea):focus {
  border-color: var(--signup-accent);
  background: #122138;
  box-shadow: 0 0 0 4px rgba(var(--signup-accent-rgb), .13);
}

#authApp[data-auth-mode="signup"] select option {
  color: #eef4fb;
  background: #101d30;
}

#authApp[data-auth-mode="signup"] .upload-card {
  border-color: #40546c;
  background: linear-gradient(135deg, rgba(var(--signup-accent-rgb), .075), rgba(15, 27, 45, .72));
}

#authApp[data-auth-mode="signup"] .upload-preview {
  color: var(--signup-accent);
  background: #0e1a2a;
  box-shadow: inset 0 0 0 1px rgba(var(--signup-accent-rgb), .24);
}

#authApp[data-auth-mode="signup"] .upload-copy strong { color: #edf3fa; }
#authApp[data-auth-mode="signup"] .upload-copy span { color: #91a4ba; }

#authApp[data-auth-mode="signup"] .btn-secondary {
  border-color: #40546c;
  color: #dce6f2;
  background: #1a2b42;
}

#authApp[data-auth-mode="signup"] .btn-secondary:hover {
  border-color: var(--signup-accent);
  color: #fff;
  background: rgba(var(--signup-accent-rgb), .12);
}

#authApp[data-auth-mode="signup"] .map-picker {
  border-color: #3b4e66;
  background: #0f1b2d;
}

#authApp[data-auth-mode="signup"] .coordinate-entry,
#authApp[data-auth-mode="signup"] .map-controls {
  border-color: #33465e;
  background: #142238;
}

#authApp[data-auth-mode="signup"] .coordinate-entry label span,
#authApp[data-auth-mode="signup"] .map-coords {
  color: #91a4ba;
}

#authApp[data-auth-mode="signup"] .form-actions {
  position: sticky;
  bottom: -3px;
  z-index: 20;
  margin-top: 26px;
  padding: 14px 0 2px;
  background: linear-gradient(180deg, rgba(19, 32, 50, 0), #132032 34%);
}

#authApp[data-auth-mode="signup"] .btn-ghost {
  border-color: #3a4d66;
  color: #b7c5d5;
  background: #132137;
}

#authApp[data-auth-mode="signup"] .btn-ghost:hover {
  color: #fff;
  background: #21334b;
}

#authApp[data-auth-mode="signup"] .btn-primary {
  color: #08121f;
  background: var(--signup-accent);
  box-shadow: 0 12px 28px rgba(var(--signup-accent-rgb), .24);
}

#authApp[data-auth-mode="signup"] .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 15px 34px rgba(var(--signup-accent-rgb), .30);
}

#authApp[data-auth-mode="signup"] .auth-language {
  color: #9fb0c5;
}

#authApp[data-auth-mode="signup"] .auth-language select {
  border-color: #3a4d66;
  color: #eef4fb;
  background: #142238;
}

#authApp[data-auth-mode="signup"] .mobile-brand {
  color: #f4f7fb;
}

#authApp[data-auth-mode="signup"] .mobile-brand .brand-mark {
  box-shadow: 0 10px 26px rgba(var(--signup-accent-rgb), .24);
}

html[dir="rtl"] #authApp[data-auth-mode="signup"] .registration-scroll {
  padding-right: 2px;
  padding-left: 9px;
}

@media (max-width: 960px) {
  #authApp[data-auth-mode="signup"] .auth-panel {
    justify-content: flex-start;
    min-height: 100dvh;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  #authApp[data-auth-mode="signup"] .auth-card {
    margin: auto 0;
  }

  #authApp[data-auth-mode="signup"] .registration-scroll {
    max-height: none;
    overflow: visible;
  }

  #authApp[data-auth-mode="signup"] .form-actions {
    position: static;
    background: transparent;
  }
}

@media (max-width: 600px) {
  #authApp[data-auth-mode="signup"] .auth-panel {
    padding: 18px 12px 28px;
  }

  #authApp[data-auth-mode="signup"] .mobile-brand {
    margin: 0 0 18px 6px;
  }

  #authApp[data-auth-mode="signup"] .auth-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  #authApp[data-auth-mode="signup"] .auth-card-head h2 {
    font-size: 28px;
  }

  #authApp[data-auth-mode="signup"] .role-card {
    min-height: 88px;
    padding: 15px;
    border-radius: 14px;
  }

  #authApp[data-auth-mode="signup"] .upload-card {
    align-items: flex-start;
  }

  #authApp[data-auth-mode="signup"] .upload-preview {
    width: 58px;
    height: 58px;
  }

  #authApp[data-auth-mode="signup"] .form-actions.split {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  #authApp[data-auth-mode="signup"] .form-actions .btn {
    width: 100%;
  }
}
