/* ============================================================
   Cirkled In — Sign up / Log in module
   Drop-in styles on top of Bootstrap 5.3.
   ------------------------------------------------------------
   COLLISION SAFETY (for the main repo):
   - Every custom class is prefixed  sl-
   - Every custom CSS variable is prefixed  --sl-
   - Every custom @keyframes name is prefixed  sl-
   - Every DOM id is prefixed  sl  (see markup / JS)
   - Bootstrap's own classes (row, col-*, form-control, form-select,
     form-check*, invalid-feedback, d-block) are used as-is.
   Assets are referenced by file path — no base64 image encoding.
   Mobile-first: base rules target phones; the md breakpoint
   (>=761px) layers on the side-by-side desktop layout.
   ============================================================ */

:root {
  --sl-font-display: 'Sora', sans-serif;
  --sl-font-body: 'DM Sans', sans-serif;

  --sl-blue: #185FA5;
  --sl-blue-700: #124d87;
  --sl-navy: #0A1628;
  --sl-navy-3: #1B3A6B;
  --sl-sky: #0094DE;
  --sl-gold: #F5A623;
  --sl-gold-dark: #d98e10;

  --sl-fg-1: #0F172A;
  --sl-fg-2: #334155;
  --sl-fg-3: #64748B;
  --sl-fg-muted: #94A3B8;

  --sl-slate-50: #F8FAFC;
  --sl-slate-100: #F1F5F9;
  --sl-slate-200: #E2E8F0;
  --sl-slate-300: #CBD5E1;
  --sl-tint-blue: #E8F3FF;
  --sl-danger: #DC2626;

  --sl-r-sm: 8px;
  --sl-r-md: 12px;
  --sl-r-lg: 20px;
  --sl-r-xl: 24px;

  --sl-gradient-deep: linear-gradient(150deg, #0A1628, #124d87 55%, #185FA5);
  --sl-gradient-hero: linear-gradient(135deg, #0094DE, #185FA5 45%, #0A1628);
}

.sl-wrap * { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sl-font-body);
  color: var(--sl-fg-1);
  -webkit-font-smoothing: antialiased;
}

/* ---- page backdrop ---- */
.sl-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--sl-gradient-hero);
  position: relative;
}
.sl-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/bg-circle-abstract.png') center / cover no-repeat;
  opacity: .16;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Bootstrap modal shell */
.sl-modal .modal-dialog {
  width: min(920px, calc(100vw - 24px));
  max-width: 920px;
  margin: 1rem auto;
}
.sl-modal .modal-content {
  border: 0;
  border-radius: var(--sl-r-lg);
  background: transparent;
  box-shadow: none;
  overflow: visible;
  position: relative;
}
.sl-modal .modal-body {
  padding: 0;
}
.sl-modal .sl-wrap {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.modal-open .modal.login-signup-modal {
  background: var(--sl-gradient-hero);
}

.sl-modal-close {
  position: absolute;
  top: 8px;
  right: 7px;
  z-index: 2;
  width: 0.25rem;
  height: 0.25rem;
  padding: .75rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .96);
  opacity: 1;
  box-shadow: 0 8px 24px rgba(10, 22, 40, .24);
  font-size: 11px;
}
.sl-close-v4 {
    position: absolute;
    top: 14px;
    right: 13px;
    z-index: 2;
    width: 1.5rem;
    height: 1.5rem;
    padding: .75rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .96);
    opacity: 1;
    box-shadow: 0 8px 24px rgba(10, 22, 40, .24);
    font-size: 18px;
}
.sl-modal-close:hover {
  opacity: 1;
  background-color: #fff;
}
.sl-modal-close:focus {
  box-shadow: 0 0 0 .25rem rgba(24, 95, 165, .22), 0 8px 24px rgba(10, 22, 40, .24);
}
/* ---- card ---- */
.sl-card {
  position: relative;
  display: flex;
  flex-direction: column;      /* mobile: stacked */
  width: min(920px, 100%);
  background: #fff;
  border-radius: var(--sl-r-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(10, 22, 40, .34);
}

/* ============ LEFT RAIL ============ */
.sl-rail {
  background: var(--sl-gradient-deep);
  color: #fff;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.sl-logo { height: 24px; width: auto; align-self: flex-start; }

.sl-rail-hero { margin-top: 16px; }
.sl-rail-hero h1 {
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}
.sl-rail-hero p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .68);
  margin: 8px 0 0;
}

/* Google (in the rail) */
.sl-rail-google { margin-top: 16px; }
.sl-gbtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--sl-slate-200);
  border-radius: var(--sl-r-sm);
  padding: 13px;
  min-height: 48px;
  cursor: pointer;
  font-family: var(--sl-font-body);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--sl-fg-1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
  transition: transform .08s, box-shadow .16s, border-color .16s;
}
.sl-gbtn:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.sl-gbtn:active { transform: scale(.98); }

/* Google's own sign-in button, which replaces .sl-gbtn entirely.
   It must stay genuinely visible — Google and Chrome's FedCM both refuse
   the click on a button that is transparent or covered, so do NOT set
   opacity, visibility or a covering overlay on this. Google renders it in
   a fixed-size iframe with its own negative margins; only centre it. */
.sl-gbtn-gsi {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.sl-gbtn-gsi iframe { margin: 0 auto !important; }
.sl-rail-google-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
  text-align: center;
  margin-top: 10px;
}

/* Role list — mobile: horizontal scroll-snap chips */
.sl-rail-role { margin-top: 16px; }
.sl-role-h {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin: 0 2px 10px;
  text-align: left;
}
.sl-role-list {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.sl-role {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 10px 15px;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--sl-font-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .82);
  transition: background .16s, color .16s, box-shadow .16s, border-color .16s;
}
.sl-role svg { width: 18px; height: 18px; flex: none; }
.sl-role .sl-role-lock { width: 12px; height: 12px; opacity: .55; }
.sl-role:hover { background: rgba(255, 255, 255, .12); }
.sl-role.sl-active {
  background: #fff;
  color: var(--sl-blue-700);
  border-color: #fff;
}

.sl-rail-secure {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .55);
  font-size: 11.5px;
}
.sl-rail-secure svg { width: 14px; height: 14px; flex: none; }

/* ============ RIGHT PANEL ============ */
.sl-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.sl-panel-head { padding: 18px 20px 0; flex: none; }

.sl-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  background: var(--sl-slate-100);
  border-radius: var(--sl-r-md);
  padding: 5px;
  margin-bottom: 14px;
}
.sl-tabs.sl-hidden { display: none; }
.sl-tab {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 11px;
  min-height: 44px;
  border: none;
  border-radius: var(--sl-r-sm);
  cursor: pointer;
  background: transparent;
  color: var(--sl-fg-3);
  transition: all .16s;
}
.sl-tab.sl-active {
  background: var(--sl-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(24, 95, 165, .26);
}

.sl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sl-tint-blue);
  color: var(--sl-blue-700);
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .03em;
  padding: 8px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.sl-panel-title {
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--sl-navy-3);
  margin: 0 0 5px;
}
.sl-panel-sub { font-size: 14px; color: var(--sl-fg-3); margin: 0; }

/* Form */
.sl-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sl-field-scroll {
  flex: 1;
  min-height: 0;
  padding: 14px 20px 10px;
}
.sl-field-scroll .row { --bs-gutter-y: 10px; }

/* Google block on the login tab (right side) */
.sl-panel-google { margin-bottom: 6px; }
.sl-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--sl-fg-muted);
  font-size: 12.5px;
}
.sl-or::before, .sl-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sl-slate-200);
}

/* Bold, consistent field titles across every audience */
.sl-field-scroll .form-label {
  font-family: var(--sl-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--sl-navy-3);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.sl-field-scroll .form-label .sl-opt {
  font-family: var(--sl-font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--sl-fg-muted);
}
.sl-req {
  color: var(--sl-danger);
  font-weight: 700;
  margin-left: 1px;
}

/* GPA / SAT-ACT radio rows */
.sl-acad-radios { display: flex; gap: 16px; margin-top: 6px; }
.sl-acad-radios label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sl-font-body); font-size: 13px; font-weight: 600; color: var(--sl-fg-2); cursor: pointer;
}
.sl-acad-radios input { accent-color: var(--sl-blue); width: 16px; height: 16px; }

.sl-field-scroll .invalid-feedback { font-size: 11.5px; font-weight: 600; }
.sl-field-scroll .form-control,
.sl-field-scroll .form-select {
  border: 1px solid var(--sl-slate-200);
  border-radius: var(--sl-r-sm);
  padding: 10px 14px;
  font-size: 16px;               /* 16px prevents iOS focus-zoom on phones */
  min-height: 46px;
  font-family: var(--sl-font-body);
  color: var(--sl-fg-1);
}
.sl-field-scroll .form-control:focus,
.sl-field-scroll .form-select:focus {
  border-color: var(--sl-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, .12);
}
.sl-field-scroll .select2-container {
  width: 100% !important;
  display: block;
}
.sl-field-scroll .select2-container--default .select2-selection--single {
  border: 1px solid var(--sl-slate-200);
  border-radius: var(--sl-r-sm);
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 42px 0 14px;
  background: #fff;
}
.sl-field-scroll .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--sl-fg-1);
  line-height: 1.35;
  padding-left: 0;
  padding-right: 0;
}
.sl-field-scroll .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--sl-fg-muted);
}
.sl-field-scroll .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 10px;
  width: 20px;
}
.sl-field-scroll .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #94A3B8 transparent transparent transparent;
}
.sl-field-scroll .select2-container--default.select2-container--open .select2-selection--single,
.sl-field-scroll .select2-container--default .select2-selection--single:focus {
  border-color: var(--sl-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, .12);
}
.sl-field-scroll .select2-container--default.sl-select2-invalid .select2-selection--single {
  border-color: var(--sl-danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .10);
}
.sl-select2-dropdown {
  border: 1px solid var(--sl-slate-200);
  border-radius: var(--sl-r-sm);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 22, 40, .16);
}
.sl-select2-dropdown .select2-search--dropdown {
  padding: 8px;
}
.sl-select2-dropdown .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--sl-slate-200);
  border-radius: 8px;
  padding: 8px 10px;
}
.sl-select2-dropdown .select2-results__option {
  padding: 9px 12px;
  font-size: 14px;
}
.sl-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--sl-blue);
  color: #fff;
}
.sl-field-scroll .form-text { font-size: 11.5px; color: var(--sl-fg-muted); margin-top: 2px; }
.sl-field-scroll .form-check { margin-top: 4px; }
.sl-field-scroll .form-check-label { font-size: 13.5px; color: var(--sl-fg-2); }
.sl-field-scroll .form-check-input { width: 1.15em; height: 1.15em; margin-top: .12em; }
.sl-field-scroll .form-check-input:checked {
  background-color: var(--sl-blue);
  border-color: var(--sl-blue);
}

/* password field with eye toggle */
.sl-pw-wrap { position: relative; }
.sl-pw-wrap .form-control { padding-right: 48px; }
.sl-pw-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--sl-fg-muted);
  display: inline-flex;
}
.sl-pw-eye svg { width: 20px; height: 20px; }

.sl-forgot { font-size: 13.5px; font-weight: 600; color: var(--sl-blue); text-decoration: none; }
.sl-forgot:hover { color: var(--sl-blue-700); }

.sl-wrap a { color: var(--sl-blue); text-decoration: none; }
.sl-wrap a:hover { color: var(--sl-blue-700); }

/* Footer (submit + switch) */
.sl-panel-foot {
  flex: none;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--sl-slate-100);
}
.sl-submit {
  width: 100%;
  border: none;
  border-radius: var(--sl-r-sm);
  padding: 15px;
  min-height: 52px;
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  background: var(--sl-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 95, 165, .28);
  transition: background .18s, transform .08s;
}
.sl-submit:hover { background: var(--sl-blue-700); }
.sl-submit:active { transform: scale(.99); }
.sl-submit.sl-is-signup {
  background: var(--sl-gold);
  color: var(--sl-navy);
  box-shadow: 0 8px 20px rgba(245, 166, 35, .35);
}
.sl-submit.sl-is-signup:hover { background: var(--sl-gold-dark); }

.sl-switch-line { text-align: center; font-size: 14px; color: var(--sl-fg-3); margin: 14px 0 0; }
.sl-switch-line button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sl-font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--sl-blue);
  cursor: pointer;
}

/* ============ AGE + CELEBRATION overlays ============ */
.sl-celebrate,
.sl-age {
  position: absolute;
  inset: 0;
  background: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 24px;
}
.sl-panel.sl-show-celebrate .sl-panel-head,
.sl-panel.sl-show-celebrate .sl-form { visibility: hidden; }
.sl-panel.sl-show-celebrate .sl-celebrate { display: flex; }
.sl-panel.sl-show-age .sl-panel-head,
.sl-panel.sl-show-age .sl-form { visibility: hidden; }
.sl-panel.sl-show-age .sl-age { display: flex; }

.sl-age-opts { display: flex; gap: 14px; width: 100%; max-width: 400px; margin-bottom: 4px; }
.sl-age-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: var(--sl-r-lg);
  cursor: pointer;
  border: 2px solid var(--sl-slate-300);
  background: #fff;
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--sl-fg-1);
  transition: border-color .16s, background .16s, color .16s;
}
.sl-age-opt .sl-e { font-size: 28px; }
.sl-age-opt:hover { border-color: var(--sl-blue); }
.sl-age-opt.sl-active { border-color: var(--sl-blue); background: var(--sl-tint-blue); color: var(--sl-blue-700); }
.sl-age-opt:disabled { cursor: default; opacity: .7; }
/* moving-dots "still working" cue next to the label while the account saves */
.sl-dots { display: inline-flex; gap: 3px; }
.sl-dots span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .35; animation: sl-dotPulse 1.1s infinite ease-in-out; }
.sl-dots span:nth-child(2) { animation-delay: .15s; }
.sl-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes sl-dotPulse { 0%, 80%, 100% { opacity: .35; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.sl-age-note {
  margin-top: 16px;
  background: #FFF6E0;
  border: 1px solid #f0d68a;
  border-radius: var(--sl-r-md);
  padding: 12px 14px;
  font-size: 13px;
  color: #8a6100;
  text-align: left;
  max-width: 400px;
}
.sl-age-actions { display: flex; gap: 12px; margin-top: 22px; }
.sl-age-back {
  background: #fff;
  color: var(--sl-blue);
  border: 1.5px solid #B6D8F5;
  border-radius: var(--sl-r-sm);
  padding: 13px 22px;
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.sl-age-back:hover { background: var(--sl-tint-blue); }
.sl-celebrate-title {
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--sl-navy-3);
  margin: 6px 0 8px;
}
.sl-celebrate-sub { font-size: 14.5px; color: var(--sl-fg-2); line-height: 1.55; margin: 0 0 24px; max-width: 380px; }
.sl-success-check {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #E6F7EC;
  color: #2bb24c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: sl-checkPop .4s ease-out both;
}
.sl-success-check svg { width: 40px; height: 40px; }
@keyframes sl-checkPop { 0%{transform:scale(.4);opacity:0} 60%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
.sl-celebrate-go {
  border: none;
  border-radius: var(--sl-r-sm);
  padding: 14px 26px;
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: 15.5px;
  cursor: pointer;
  background: var(--sl-gold);
  color: var(--sl-navy);
  box-shadow: 0 8px 20px rgba(245, 166, 35, .35);
  transition: background .18s, transform .08s;
}
.sl-celebrate-go:hover { background: var(--sl-gold-dark); }
.sl-celebrate-go:active { transform: scale(.98); }

/* animated birthday cake — pure CSS, no image files */
.sl-cake { position: relative; height: 158px; margin-bottom: 4px; }
.sl-cake .sl-stage { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 170px; height: 150px; }
.sl-cake span { position: absolute; }
@keyframes sl-flDance { 0%,100%{transform:translateX(-50%) rotate(-3deg) scaleY(1) scaleX(1)} 20%{transform:translateX(-50%) rotate(3deg) scaleY(1.08) scaleX(.95)} 40%{transform:translateX(-52%) rotate(-2deg) scaleY(.94) scaleX(1.04)} 60%{transform:translateX(-48%) rotate(2deg) scaleY(1.05) scaleX(.97)} 80%{transform:translateX(-50%) rotate(-1deg) scaleY(.98) scaleX(1.02)} }
@keyframes sl-flGlow { 0%,100%{opacity:.45;transform:translateX(-50%) scale(1)} 50%{opacity:.85;transform:translateX(-50%) scale(1.18)} }
@keyframes sl-flInner { 0%,100%{transform:translateX(-50%) scaleY(1)} 50%{transform:translateX(-50%) scaleY(1.12)} }
@keyframes sl-smoke1 { 0%{opacity:0;transform:translate(-50%,0) scale(.6)} 30%{opacity:.35} 100%{opacity:0;transform:translate(-30%,-46px) scale(1.5)} }
@keyframes sl-sparkPop { 0%{transform:scale(0);opacity:0} 40%{opacity:1} 100%{transform:scale(1.4) translate(var(--sl-dx),var(--sl-dy));opacity:0} }

/* ============ GOOGLE SIGN-UP (simulated picker) ============ */
.sl-g-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--sl-tint-blue); border: 1px solid #cfe4fb;
  border-radius: var(--sl-r-md); padding: 11px 14px;
}
.sl-g-chip-av {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--sl-blue); color: #fff; font-family: var(--sl-font-display);
  font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.sl-g-chip-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sl-g-chip-txt b { font-family: var(--sl-font-display); font-size: 14px; color: var(--sl-navy-3); }
.sl-g-chip-txt span { font-size: 12.5px; color: var(--sl-fg-3); overflow: hidden; text-overflow: ellipsis; }
.sl-g-chip-check { width: 20px; height: 20px; margin-left: auto; color: #2bb24c; flex: none; }

.sl-g-overlay { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; }
.sl-g-backdrop { position: absolute; inset: 0; background: rgba(10, 22, 40, .55); backdrop-filter: blur(3px); }
.sl-g-sheet {
  position: relative; width: min(400px, 92%);
  background: #fff; border-radius: var(--sl-r-md);
  box-shadow: 0 30px 80px rgba(10, 22, 40, .5);
  overflow: hidden; font-family: var(--sl-font-body);
}
.sl-g-sheet-pick { padding: 26px 0 12px; }
.sl-g-sheet-head { padding: 0 26px 14px; }
.sl-g-glogo { margin-bottom: 14px; }
.sl-g-sheet-title { font-size: 19px; color: #202124; font-weight: 500; }
.sl-g-sheet-sub { font-size: 13px; color: #5f6368; margin-top: 2px; }
.sl-g-acct-list { display: flex; flex-direction: column; }
.sl-g-acct {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border: none; background: #fff; cursor: pointer; text-align: left;
  padding: 12px 26px; transition: background .12s;
}
.sl-g-acct:hover { background: #f1f3f4; }
.sl-g-acct-av {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  color: #fff; font-family: var(--sl-font-display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.sl-g-acct-plus { background: #e8eaed; color: #5f6368; font-weight: 400; font-size: 20px; }
.sl-g-acct-other { border-top: 1px solid var(--sl-slate-100); margin-top: 4px; }
.sl-g-acct-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sl-g-acct-txt b { font-size: 14px; font-weight: 600; color: #202124; }
.sl-g-acct-txt span { font-size: 12.5px; color: #5f6368; }

.sl-g-loader { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 54px 26px; }
.sl-g-sheet.sl-loading .sl-g-sheet-pick { display: none; }
.sl-g-sheet.sl-loading .sl-g-loader { display: flex; }
.sl-g-loader p { margin: 0; font-size: 14px; color: #5f6368; }
.sl-g-spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid #e3e6ea; border-top-color: var(--sl-blue); animation: sl-gspin .8s linear infinite; }
@keyframes sl-gspin { to { transform: rotate(360deg); } }

/* ============================================================
   DESKTOP (>=761px): side-by-side layout, fixed height,
   internal form scroll. Everything above is the mobile base.
   ============================================================ */
@media (min-width: 761px) {
  .sl-wrap { padding: 28px 20px; }
  /* Tighter fields on desktop (phones keep 16px to avoid iOS focus-zoom). */
  .sl-field-scroll .form-control,
  .sl-field-scroll .form-select { font-size: 14px; min-height: 38px; padding: 7px 12px; }
  .sl-field-scroll .select2-container--default .select2-selection--single { min-height: 38px; padding: 0 38px 0 12px; }
  .sl-field-scroll .select2-container--default .select2-selection--single .select2-selection__arrow { right: 8px; }
  .sl-card {
    flex-direction: row;
    /* FIXED size — identical for every audience; never grows or shrinks when
       switching role or tab. Height is sized to fit the tallest form (student
       sign-up) with compact fields, so there is no inner scrollbar. */
    height: 730px;
    min-height: 0;
  }
  /* Compact, uniform field rhythm so the student sign-up fits without scrolling. */
  .sl-field-scroll .row { --bs-gutter-y: 7px; }
  .sl-field-scroll .form-label { font-size: 12.5px; margin-bottom: 2px; }
  .sl-acad-radios { margin-top: 4px; gap: 14px; }
  .sl-field-scroll .form-check { margin-top: 2px; }
  .sl-field-scroll .form-text { margin-top: 1px; }
  /* Compact chrome (tabs + footer) frees vertical room for the fields. */
  .sl-tabs { margin-bottom: 12px; }
  .sl-tab { min-height: 40px; padding: 9px; }
  .sl-submit { min-height: 48px; padding: 13px; }
  .sl-switch-line { margin-top: 10px; }

  .sl-rail {
    width: 312px;
    flex: none;
    padding: 28px 26px 22px;
    min-height: 0;
    overflow: visible;
  }
  .sl-logo { height: 26px; }
  .sl-rail-hero { margin-top: 20px; }
  .sl-rail-hero h1 { font-size: 21px; }
  .sl-rail-hero p { font-size: 13.5px; margin-top: 10px; }
  .sl-rail-google { margin-top: 18px; }

  .sl-rail-role { margin-top: 18px; }
  .sl-role-h { margin: 0 0 10px 4px; text-align: left; }
  .sl-role-list {
    flex-direction: column;
    gap: 3px;
    overflow: visible;
  }
  .sl-role {
    width: 100%;
    border-radius: 10px;
    padding: 9px 13px;
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
  }
  .sl-role svg { width: 20px; height: 20px; }
  .sl-role span { flex: 1 1 auto; }
  .sl-role:hover { background: rgba(255, 255, 255, .09); }
  .sl-role.sl-active {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: transparent;
    box-shadow: inset 3px 0 0 var(--sl-gold);
  }

  .sl-rail-secure { margin-top: auto; padding-top: 18px; }

  .sl-panel-head { padding: 16px 40px 0; }
  .sl-panel-title { font-size: 25px; }
  .sl-field-scroll { overflow-y: auto; padding: 10px 40px 8px; }
  .sl-panel-foot { padding: 12px 40px 14px; }
  .sl-celebrate, .sl-age { padding: 30px 40px; }

  /* desktop can use tighter, non-zooming control sizing */
  .sl-field-scroll .form-control,
  .sl-field-scroll .form-select { font-size: 14px; min-height: 38px; padding: 7px 12px; }
  .sl-field-scroll .select2-container--default .select2-selection--single { min-height: 38px; padding: 0 38px 0 12px; }
  .sl-field-scroll .select2-container--default .select2-selection--single .select2-selection__arrow { right: 8px; }
  .sl-gbtn { min-height: 46px; }
}
