/* =========================================================
   TransReg — Landing Page (reference mockup)
   ========================================================= */

.landing-page {
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  position: relative;
  z-index: 1;
  color: #ffffff;
  background: #0b1220;
}

/* Matches the reference .landing::before overlay, applied over the real photo */
html[data-theme="dark"] .landing-page .page-bg-overlay,
.landing-page .page-bg-overlay {
  background:
    linear-gradient(180deg,
      rgba(11, 18, 32, 0.50) 0%,
      rgba(11, 18, 32, 0.64) 48%,
      rgba(11, 18, 32, 0.78) 100%);
}

/* ---------- Theme tokens ---------- */
.landing-page {
  --landing-navy: #0b1220;
  --landing-amber: #d8863c;
  --landing-muted: #8b9bb8;
  --landing-line: rgba(255, 255, 255, 0.08);
  --landing-header-bg: rgba(13, 21, 38, 0.88);
  /* Buttons: same navy/slate family, lifted a few steps in lightness */
  --cta-create-bg: linear-gradient(180deg, #5F82B8 0%, #3E5D95 100%);
  --cta-create-text: #F4F8FF;
  --cta-create-border: rgba(214, 229, 252, 0.28);
  --cta-create-shadow: 0 10px 24px rgba(30, 48, 88, 0.45);
  --cta-login-bg: rgba(198, 214, 239, 0.08);
  --cta-login-text: #DCE7F9;
  --cta-login-border: rgba(198, 214, 239, 0.4);
  --cta-login-hover-bg: rgba(198, 214, 239, 0.18);
  --drawer-bg: rgba(11, 18, 32, 0.92);
  --drawer-btn-bg: rgba(114, 137, 169, 0.22);
  --drawer-btn-text: #ECF4FF;
  --drawer-btn-active-bg: #C6D6EF;
  --drawer-btn-active-text: #18233F;
  --hero-headline-color: #ffffff;
  --hero-desc-color: rgba(236, 244, 255, 0.78);
  --hero-brand-color: #ECF4FF;
  --brand-accent: #A9C6EE;
  --brand-accent-glint: #FFFFFF;
  --brand-title-gradient: linear-gradient(180deg, #F4F8FF 0%, #D5E3F6 32%, #9AADC8 68%, #7289A9 100%);
  /* Filled pill inputs: a few steps lighter than the modal surface */
  --auth-input-bg: #334773;
  --auth-input-bg-focus: #3C5285;
  --auth-input-text: #ECF4FF;
  --auth-input-placeholder: #A5B8D8;
  --auth-input-icon: #A5B8D8;
  --auth-input-ring: rgba(169, 198, 238, 0.38);
  --auth-primary-bg: linear-gradient(90deg, #A9C6EE 0%, #6E93D0 42%, #3E5D95 100%);
  --auth-primary-bg-hover: linear-gradient(90deg, #BBD3F6 0%, #7EA2DF 42%, #4A6AA8 100%);
  /* Shared Login / Create Account card — sized for Create Account step 3 */
  --auth-card-width: 30.6rem;
  --auth-card-height: 39.6rem;
  --auth-card-radius: 20px;
  --auth-card-padding: 20px;
  --auth-space: 16px;
  --auth-space-sm: 8px;
  --auth-space-field: 14px;
  --auth-label-gap: 8px;
  --btn-glint: rgba(236, 244, 255, 0.28);
  --header-toggle-border: rgba(255, 255, 255, 0.22);
  --header-toggle-bg: transparent;
  --header-toggle-color: #ffffff;
}

html[data-theme="light"] .landing-page {
  --landing-header-bg: rgba(255, 255, 255, 0.9);
  --landing-line: rgba(15, 23, 42, 0.1);
  --cta-create-bg: linear-gradient(180deg, #4E6FA8 0%, #2F4B7C 100%);
  --cta-create-text: #ffffff;
  --cta-create-border: rgba(24, 35, 63, 0.16);
  --cta-create-shadow: 0 10px 24px rgba(24, 35, 63, 0.28);
  --cta-login-bg: rgba(255, 255, 255, 0.78);
  --cta-login-text: #23345B;
  --cta-login-border: rgba(35, 52, 91, 0.28);
  --cta-login-hover-bg: #ffffff;
  --auth-input-bg: #EEF2F8;
  --auth-input-bg-focus: #E5ECF7;
  --auth-input-text: #0f172a;
  --auth-input-placeholder: #94a3b8;
  --auth-input-icon: #94a3b8;
  --auth-input-ring: rgba(62, 93, 149, 0.3);
  --auth-primary-bg: linear-gradient(100deg, #6E93D4 0%, #43679F 50%, #2F4B7C 100%);
  --auth-primary-bg-hover: linear-gradient(100deg, #7EA2DF 0%, #4E74AE 50%, #375689 100%);
  --drawer-bg: rgba(255, 255, 255, 0.94);
  --drawer-btn-bg: #f8fafc;
  --drawer-btn-text: #18233F;
  --drawer-btn-hover-bg: rgba(198, 214, 239, 0.42);
  --drawer-btn-active-bg: #364B76;
  --drawer-btn-active-text: #ffffff;
  --hero-headline-color: #ffffff;
  --hero-desc-color: rgba(255, 255, 255, 0.86);
  --hero-brand-color: #F4F8FF;
  --brand-accent: #BBD3F6;
  --brand-accent-glint: #FFFFFF;
  --brand-title-gradient: linear-gradient(180deg, #FFFFFF 0%, #E8F0FC 36%, #C6D6EF 72%, #A9C6EE 100%);
  --btn-glint: rgba(24, 35, 63, 0.14);
  --header-toggle-border: rgba(24, 35, 63, 0.18);
  --header-toggle-bg: rgba(255, 255, 255, 0.7);
  --header-toggle-color: #18233F;
}

html[data-theme="light"] .landing-page,
html[data-theme="light"] .landing-header {
  color: #0f172a;
}

html[data-theme="light"] .header-icon-btn {
  color: var(--header-toggle-color);
  border-color: var(--header-toggle-border);
  background: var(--header-toggle-bg);
}

html[data-theme="light"] .header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(24, 35, 63, 0.28);
}

html[data-theme="light"] .landing-header {
  background: var(--landing-header-bg);
  color: #18233F;
  border-bottom-color: var(--landing-line);
  box-shadow: none;
}

html[data-theme="light"] .landing-page .page-bg-overlay {
  background:
    linear-gradient(180deg,
      rgba(11, 18, 32, 0.82) 0%,
      rgba(11, 18, 32, 0.84) 48%,
      rgba(11, 18, 32, 0.88) 100%);
}

/* ---------- Header ---------- */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  background: var(--landing-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  border-bottom: 1px solid var(--landing-line);
  box-shadow: none;
  isolation: isolate;
}

.header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.header-ormoc-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(180px, 30vw);
  object-fit: contain;
}

html[data-theme="dark"] .header-ormoc-logo {
  mix-blend-mode: screen;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--header-toggle-border);
  background: var(--header-toggle-bg);
  color: var(--header-toggle-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.header-icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 72px;
  z-index: 1;
  isolation: isolate;
}

.hero-center {
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  /* The TDFRO mark is tall; square frames keep both seals aligned without distortion. */
  gap: 10px;
  margin: 0 0 10px;
}

.hero-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: none;
  border: none;
  box-shadow: none;
  filter: none;
  padding: 0;
  margin: 0;
}

html[data-theme="dark"] .hero-logo {
  mix-blend-mode: screen;
}

.hero-brand {
  font-family: 'Playfair Display', 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 8.5vw, 88px);
  line-height: 1.12;
  /* the italic descender sits below the line box; without this padding
     background-clip: text leaves the tail of the "g" unpainted */
  padding-bottom: 0.14em;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--hero-brand-color);
  background-image: var(--brand-title-gradient);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  will-change: transform, opacity;
  animation:
    brand-rise 1100ms cubic-bezier(0.22, 0.68, 0.24, 1) both,
    brand-drift 11s 1300ms ease-in-out infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-brand {
    background-image: none;
    -webkit-text-fill-color: var(--hero-brand-color);
    color: var(--hero-brand-color);
  }
}

@keyframes brand-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Highlight crosses the word, then rests off-screen until the next pass */
@keyframes brand-shimmer {
  0% { background-position: 100% 0; }
  42% { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand { animation: none; }
}

.hero-headline {
  font-family: 'Archivo Black', 'Montserrat', sans-serif;
  font-size: clamp(26px, 4.2vw, 42px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--hero-headline-color);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  max-width: 19em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--hero-desc-color);
  margin: 0 auto;
  max-width: 560px;
  text-shadow: 0 1px 10px rgba(11, 18, 32, 0.45);
}

.hero-flash { margin-top: 16px; }
.hero-flash-error { color: #fca5a5; }
.landing-modal .field-error {
  margin: 0 0 12px;
  color: #fca5a5;
  font-size: 13px;
}
.landing-modal .ca-field-error {
  display: none;
  margin: 6px 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: #dc2626;
}
.landing-modal .ca-field-error.show { display: block; }
.landing-modal .field.is-invalid input,
.landing-modal .field.is-invalid select {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.45);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

/* Small ghost pill under the hero buttons. */
.hero-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 18px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 9999px;
  border: 1px solid rgba(214, 229, 252, 0.35);
  background: rgba(214, 229, 252, 0.06);
  color: #ECF4FF;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-portal-link:hover { background: rgba(214, 229, 252, 0.16); border-color: rgba(214, 229, 252, 0.6); }
.hero-portal-link:focus-visible { outline: 2px solid rgba(198, 214, 239, 0.85); outline-offset: 3px; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 9999px;
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  min-width: 184px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-btn:focus-visible {
  outline: 2px solid rgba(198, 214, 239, 0.85);
  outline-offset: 3px;
}

.hero-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Primary — filled */
.hero-btn-create {
  background: var(--cta-create-bg);
  color: var(--cta-create-text);
  border-color: var(--cta-create-border);
  box-shadow: var(--cta-create-shadow);
}

.hero-btn-create:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(30, 48, 88, 0.5);
}

/* Secondary — ghost / outline */
.hero-btn-login {
  background: var(--cta-login-bg);
  color: var(--cta-login-text);
  border-color: var(--cta-login-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}

/* Hero CTAs sit directly on the photo: glass fills, tighter footprint.
   Scoped to .hero-cta so the modal/error-page buttons stay solid. */
.hero-cta .hero-btn {
  position: relative;
  overflow: hidden;
  gap: 8px;
  padding: 11px 22px;
  min-width: 152px;
  min-height: 44px;
  box-sizing: border-box;
  z-index: 1;
  isolation: isolate;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-cta .hero-btn-create {
  /* The filled button keeps a light band in both themes, since its fill stays dark */
  --btn-glint: rgba(236, 244, 255, 0.28);
  background: linear-gradient(180deg, rgba(95, 130, 184, 0.46) 0%, rgba(62, 93, 149, 0.54) 100%);
  border-color: rgba(214, 229, 252, 0.4);
  /* Keep shadow inside the gap so stacked mobile buttons do not visually collide */
  box-shadow: 0 4px 12px rgba(11, 18, 32, 0.22);
}

.hero-cta .hero-btn-create:hover {
  background: linear-gradient(180deg, rgba(110, 145, 199, 0.62) 0%, rgba(74, 107, 165, 0.7) 100%);
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.34);
  filter: none;
}

.hero-cta .hero-btn-login {
  background: rgba(214, 229, 252, 0.12);
  border-color: rgba(214, 229, 252, 0.45);
}

.hero-cta .hero-btn-login:hover {
  background: rgba(214, 229, 252, 0.22);
}

/* On the photo both CTAs read as light-on-dark, whatever the theme */
html[data-theme="light"] .hero-cta .hero-btn-login {
  color: #F2F6FF;
  border-color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .hero-cta .hero-btn-login:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero-cta .hero-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 38%,
    var(--btn-glint) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: btn-shimmer 7s 1600ms ease-in-out infinite;
}

@keyframes btn-shimmer {
  0% { transform: translateX(-130%); }
  42% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

.hero-btn-login:hover {
  background: var(--cta-login-hover-bg);
  border-color: rgba(214, 229, 252, 0.7);
}

html[data-theme="light"] .hero-btn-login:hover {
  border-color: rgba(35, 52, 91, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn,
  .hero-btn:hover {
    transform: none;
    transition: none;
  }

  .hero-cta .hero-btn::after {
    animation: none;
    opacity: 0;
  }
}

/* ---------- Role drawer (sidebar) ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-scrim.show {
  opacity: 1;
  visibility: visible;
}

.role-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  z-index: 160;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-drawer.open {
  transform: translateX(0);
}

.role-drawer-panel {
  height: 100%;
  background: var(--drawer-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.3);
}

.landing-page[data-theme="light"] .role-drawer-panel {
  border-right-color: rgba(15, 23, 42, 0.08);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
}

.role-drawer-btn {
  width: 100%;
  padding: 18px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--drawer-btn-bg);
  color: var(--drawer-btn-text);
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  line-height: 1.35;
}

.landing-page[data-theme="light"] .role-drawer-btn,
html[data-theme="light"] .role-drawer-btn {
  border: 1.5px solid rgba(24, 35, 63, 0.2);
  font-weight: 650;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.role-drawer-btn:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.2);
}

.landing-page[data-theme="light"] .role-drawer-btn:hover,
html[data-theme="light"] .role-drawer-btn:hover:not(.active) {
  transform: none;
  background: var(--drawer-btn-hover-bg, rgba(198, 214, 239, 0.42));
  color: #0f172a;
  border-color: rgba(24, 35, 63, 0.28);
  box-shadow: none;
}

.role-drawer-btn.active {
  background: var(--drawer-btn-active-bg);
  color: var(--drawer-btn-active-text);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .role-drawer-btn.active,
.landing-page[data-theme="light"] .role-drawer-btn.active {
  border-color: #18233F;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
  box-shadow: 0 2px 10px rgba(24, 35, 63, 0.2);
}

.role-drawer-btn.active:hover {
  transform: none;
}

html[data-theme="light"] .role-drawer-btn.active:hover,
.landing-page[data-theme="light"] .role-drawer-btn.active:hover {
  background: var(--drawer-btn-active-bg);
  color: #ffffff;
}

.role-drawer-btn-logout {
  margin-top: auto;
}

/* ---------- Auth modals (landing) ---------- */
.landing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vh, 24px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.landing-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.landing-modal {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--auth-card-radius);
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  min-height: 0;
  padding: var(--auth-card-padding);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.landing-modal-overlay.show .landing-modal {
  transform: none;
}

.landing-modal h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  margin: 0 0 var(--auth-space-sm);
}

.landing-modal .modal-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #64748b;
  margin: 0 0 var(--auth-space);
}

.landing-modal .field {
  margin-bottom: var(--auth-space-field);
}

.landing-modal .field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: var(--auth-label-gap);
}

.landing-modal .field input,
.landing-modal .field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.landing-modal .field input:focus {
  border-color: #3b82f6;
}

.landing-modal-foot {
  display: flex;
  gap: 12px;
  margin-top: var(--auth-space);
  align-items: stretch;
}

.landing-modal-foot .hero-btn {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  font-size: 14px;
}

.landing-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-portal-wrap {
  width: min(440px, 100%);
}

.landing-portal-card {
  gap: 12px;
  overflow: auto;
}

.landing-portal-card .hero-flash {
  margin: 0;
}

.landing-portal-card .landing-modal-foot {
  margin-top: 4px;
}

.landing-portal-card .landing-modal-foot .hero-btn {
  width: 100%;
}

.landing-modal-wrap {
  position: relative;
  width: min(var(--auth-card-width), 100%);
  height: auto;
  max-width: 100%;
  max-height: min(var(--auth-card-height), 88dvh);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  box-sizing: border-box;
}

.landing-modal-wrap:has(.landing-modal-register) {
  height: min(var(--auth-card-height), 88dvh);
}

.landing-prototype-note {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.landing-modal.landing-modal-wide {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.landing-auth-card .auth-card-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
}

.landing-auth-card .auth-card-main > [data-auth-view] {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0;
}

.landing-auth-card .auth-card-main > [data-auth-view][hidden] {
  display: none;
}

.auth-card-head {
  flex: 0 0 auto;
  padding-right: 36px;
}

.auth-card-head .modal-sub {
  margin: 6px 0 0;
}

.auth-login-form {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 18px;
}

.auth-login-fields {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

.auth-login-fields .field {
  margin-bottom: 0;
}

.auth-login-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--auth-input-ring);
  background: var(--auth-input-bg);
  cursor: pointer;
  position: relative;
}

.auth-remember input[type="checkbox"]:checked {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

.auth-remember input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #18233F;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-remember input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--auth-input-ring);
}

.auth-login-meta .ca-link-btn {
  margin-left: auto;
}

.auth-login-form .landing-modal-foot {
  margin-top: 0;
}

.ca-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--auth-space);
  /* clears the absolutely-positioned close button */
  padding-right: 42px;
}

.ca-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.ca-step .ca-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.ca-step.current { color: #18233F; }
.ca-step.current .ca-num {
  background: linear-gradient(135deg, #C6D6EF 0%, #364B76 100%);
  color: #ffffff;
  border: 1px solid #18233F;
  font-weight: 700;
}
.ca-step.done .ca-num {
  background: #166534;
  color: #fff;
}
.ca-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  min-width: 12px;
}

.ca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--auth-space-field) 14px;
  min-width: 0;
}
.ca-grid .field { min-width: 0; margin-bottom: 0; }
.ca-grid .field.full { grid-column: 1 / -1; }
.ca-optional { font-weight: 500; opacity: .65; }

.ca-verify {
  text-align: center;
  padding: 12px 8px 8px;
}
.ca-verify-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ca-verify-icon svg { width: 26px; height: 26px; }
.ca-verify p {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #64748b;
}
.ca-email {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 12px;
}
.ca-verify-note {
  font-size: 13px !important;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto 14px !important;
}
.ca-link-btn {
  border: none;
  background: none;
  color: #243352;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ca-upload {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  color: #64748b;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  cursor: pointer;
  background: #f8fafc;
}
.ca-upload svg {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  color: #94a3b8;
}
.ca-upload .hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}
.ca-upload.has-file { cursor: default; }
.ca-upload-preview {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #0f172a0d;
}
.ca-upload-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
}
.ca-upload-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ca-upload-actions .ca-upload-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 9999px;
  padding: 6px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.ca-upload-actions .ca-upload-btn:hover {
  background: #f1f5f9;
}

.landing-modal .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  background: #fff;
}

/* ---------- Password fields & validation ---------- */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  padding-right: 48px !important;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}
.password-toggle:focus-visible {
  box-shadow: 0 0 0 2px #93c5fd;
}
.password-hint {
  min-height: 0;
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: #64748b;
}
.password-hint:empty { display: none; }
.password-hint.neutral { color: #64748b; }
.password-hint.invalid { color: #b91c1c; font-weight: 600; }
.password-hint.valid { color: #15803d; font-weight: 600; }

/* ---------- Password strength meter (Create Account prototype) ---------- */
.ca-pw-strength-slot {
  margin-top: -4px;
  margin-bottom: 4px;
}
.pw-strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.pw-strength-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pw-strength-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.pw-strength-meta {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pw-strength-sep { opacity: 0.55; }
.pw-strength-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #94a3b8;
  transition: width 0.35s ease, background-color 0.35s ease;
}
.pw-strength[data-level="weak"] .pw-strength-fill { background: #ef4444; }
.pw-strength[data-level="fair"] .pw-strength-fill { background: #eab308; }
.pw-strength[data-level="good"] .pw-strength-fill { background: #38bdf8; }
.pw-strength[data-level="strong"] .pw-strength-fill { background: #22c55e; }
.pw-strength[data-level="weak"] .pw-strength-text { color: #dc2626; }
.pw-strength[data-level="fair"] .pw-strength-text { color: #ca8a04; }
.pw-strength[data-level="good"] .pw-strength-text { color: #0284c7; }
.pw-strength[data-level="strong"] .pw-strength-text { color: #16a34a; }
.pw-strength-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.pw-strength-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  transition: color 0.2s ease;
}
.pw-check-mark {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: transparent;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.pw-strength-checklist li.met {
  color: #15803d;
  font-weight: 550;
}
.pw-strength-checklist li.met .pw-check-mark {
  border-color: #22c55e;
  background: #22c55e;
}
.pw-strength-checklist li.met .pw-check-mark::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.auth-inline-links {
  margin: 0;
  text-align: right;
}

.hero-btn:disabled,
.landing-modal-foot .hero-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
  pointer-events: none;
}

/* ---------- Create Account Step 3 layout ---------- */
.landing-modal.landing-modal-register {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  min-height: 0;
  padding: var(--auth-card-padding);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: stretch;
}
.landing-modal-register .ca-modal-top {
  flex: 0 0 auto;
  padding-right: 28px;
}
.landing-modal-register .ca-modal-top .modal-sub { margin-bottom: var(--auth-space); }
.landing-modal-register .ca-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: block;
  padding-right: 2px;
}
.landing-modal-register .ca-modal-bottom {
  flex: 0 0 auto;
  padding-top: var(--auth-space-sm);
}
.landing-modal-register .ca-modal-bottom .ca-consent {
  margin-bottom: var(--auth-space-sm);
}
.landing-modal-register .ca-modal-bottom .landing-modal-foot { margin-top: 0; }
.landing-modal-register .ca-modal-bottom .landing-prototype-note { margin-top: var(--auth-space-sm); }

.ca-step3 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.ca-step3-fields {
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}
.ca-step3-fields .field { margin-bottom: 0; }
.ca-step3 .ca-upload.compact {
  padding: 8px 10px;
  min-height: 76px;
}
.landing-modal-register .ca-upload-preview {
  max-height: 56px;
}
.ca-step3-fields .field label {
  line-height: 1.3;
}
.ca-step3 .ca-upload.compact svg {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}

.ca-consent {
  flex: 0 0 auto;
  padding-top: 2px;
}
.ca-agree-check {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
  cursor: pointer;
}
.ca-agree-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}
/* keeps the label text beside the box instead of wrapping under it */
.ca-agree-check > span {
  flex: 1 1 0;
  min-width: 0;
}
.ca-consent-error {
  display: none;
  margin: 6px 0 0 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  color: #dc2626;
}
.ca-consent-error.show {
  display: block;
}
.ca-form-banner {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.ca-form-banner[hidden] {
  display: none !important;
}
.ca-inline-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ca-inline-link:hover,
.ca-inline-link:focus-visible {
  color: #1e40af;
}
.ca-inline-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Policy reader modal ---------- */
.policy-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.policy-reader {
  width: min(640px, 100%);
  max-height: min(86vh, 720px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #0f172a;
}
.policy-reader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e2e8f0;
  flex: 0 0 auto;
}
.policy-reader-head h3 {
  margin: 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
}
.policy-reader-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.policy-reader-body h4 {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}
.policy-reader-body p {
  margin: 0 0 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
}
.policy-reader-foot {
  flex: 0 0 auto;
  padding: 12px 20px 18px;
  border-top: 1px solid #e2e8f0;
}
.policy-reader-foot .hero-btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Dark mode auth surfaces ---------- */
.landing-page[data-theme="dark"] .landing-modal {
  background: rgba(24, 35, 63, 0.88);
  color: #ECF4FF;
  border: 1px solid rgba(198, 214, 239, 0.18);
}
.landing-page[data-theme="dark"] .landing-modal h3,
.landing-page[data-theme="dark"] .ca-email,
.landing-page[data-theme="dark"] .ca-step.current,
.landing-page[data-theme="dark"] .ca-agree-check {
  color: #ECF4FF;
}
.landing-page[data-theme="dark"] .landing-modal .modal-sub,
.landing-page[data-theme="dark"] .landing-modal .field label,
.landing-page[data-theme="dark"] .landing-prototype-note,
.landing-page[data-theme="dark"] .password-hint.neutral {
  color: #9eb4d4;
}
.landing-page[data-theme="dark"] .landing-modal .field input,
.landing-page[data-theme="dark"] .landing-modal .field select {
  background: #243352;
  border-color: rgba(198, 214, 239, 0.22);
  color: #ECF4FF;
}
.landing-page[data-theme="dark"] .landing-modal .field input::placeholder {
  color: #7289A9;
}
.landing-page[data-theme="dark"] .landing-modal-close,
.landing-page[data-theme="dark"] .password-toggle:hover,
.landing-page[data-theme="dark"] .password-toggle:focus-visible {
  background: #243352;
  color: #C6D6EF;
}
.landing-page[data-theme="dark"] .password-toggle { color: #9eb4d4; }
.landing-page[data-theme="dark"] .ca-step .ca-num { background: #243352; color: #9eb4d4; }
.landing-page[data-theme="dark"] .ca-line { background: rgba(198, 214, 239, 0.2); }
.landing-page[data-theme="dark"] .ca-field-error { color: #fca5a5; }
.landing-page[data-theme="dark"] .ca-upload-pdf { color: #C6D6EF; }
.landing-page[data-theme="dark"] .ca-upload-actions .ca-upload-btn {
  background: #243352;
  border-color: rgba(198, 214, 239, 0.22);
  color: #ECF4FF;
}

/* ---------- Auth modals: rounded filled inputs + gradient primary ---------- */
.landing-page .landing-modal .field input:not([type="checkbox"]):not([type="file"]):not([hidden]),
.landing-page .landing-modal .field select,
.landing-page[data-theme="dark"] .landing-modal .field input:not([type="checkbox"]):not([type="file"]):not([hidden]),
.landing-page[data-theme="dark"] .landing-modal .field select {
  padding: 13px 20px;
  border: none;
  border-radius: 9999px;
  background: var(--auth-input-bg);
  color: var(--auth-input-text);
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.landing-page .landing-modal .field input::placeholder,
.landing-page[data-theme="dark"] .landing-modal .field input::placeholder {
  color: var(--auth-input-placeholder);
}

.landing-page .landing-modal .field input:not([type="checkbox"]):not([type="file"]):focus,
.landing-page .landing-modal .field select:focus,
.landing-page[data-theme="dark"] .landing-modal .field input:not([type="checkbox"]):not([type="file"]):focus,
.landing-page[data-theme="dark"] .landing-modal .field select:focus {
  border: none;
  outline: none;
  background: var(--auth-input-bg-focus);
  box-shadow: 0 0 0 2px var(--auth-input-ring);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--auth-input-icon);
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.landing-page .landing-modal .field .input-icon-wrap input:not([type="checkbox"]):not([type="file"]),
.landing-page .landing-modal .field .input-icon-wrap select,
.landing-page[data-theme="dark"] .landing-modal .field .input-icon-wrap input:not([type="checkbox"]):not([type="file"]),
.landing-page[data-theme="dark"] .landing-modal .field .input-icon-wrap select {
  padding-left: 52px;
}

.landing-page .landing-modal [data-auth-view="login"] .field input:not([type="checkbox"]):not([type="file"]),
.landing-page .landing-modal [data-auth-view="forgot"] .field input:not([type="checkbox"]):not([type="file"]),
.landing-page[data-theme="dark"] .landing-modal [data-auth-view="login"] .field input:not([type="checkbox"]):not([type="file"]),
.landing-page[data-theme="dark"] .landing-modal [data-auth-view="forgot"] .field input:not([type="checkbox"]):not([type="file"]) {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 15px;
}

.landing-page .landing-modal [data-auth-view="login"] .landing-modal-foot .hero-btn,
.landing-page .landing-modal [data-auth-view="forgot"] .landing-modal-foot .hero-btn {
  padding: 16px 22px;
  font-size: 15px;
}

.landing-modal .password-input-wrap input {
  padding-right: 48px !important;
}

.landing-modal .password-toggle {
  right: 6px;
  border-radius: 9999px;
}

.landing-modal-foot .hero-btn-create {
  background: var(--auth-primary-bg);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(30, 48, 88, 0.42);
}

.landing-modal-foot .hero-btn-create:hover {
  background: var(--auth-primary-bg-hover);
  filter: none;
  box-shadow: 0 12px 26px rgba(30, 48, 88, 0.5);
}
.landing-page[data-theme="dark"] .ca-upload {
  background: #243352;
  border-color: rgba(198, 214, 239, 0.28);
  color: #9eb4d4;
}
.landing-page[data-theme="dark"] .ca-consent-error {
  color: #fca5a5;
}
.landing-page[data-theme="dark"] .pw-strength {
  background: rgba(36, 51, 82, 0.85);
  border-color: rgba(198, 214, 239, 0.22);
}
.landing-page[data-theme="dark"] .pw-strength-label {
  color: #C6D6EF;
}
.landing-page[data-theme="dark"] .pw-strength-meta {
  color: #9eb4d4;
}
.landing-page[data-theme="dark"] .pw-strength-track {
  background: rgba(198, 214, 239, 0.18);
}
.landing-page[data-theme="dark"] .pw-strength[data-level="empty"] .pw-strength-fill {
  background: #7289A9;
}
.landing-page[data-theme="dark"] .pw-strength[data-level="weak"] .pw-strength-text { color: #fca5a5; }
.landing-page[data-theme="dark"] .pw-strength[data-level="fair"] .pw-strength-text { color: #fde047; }
.landing-page[data-theme="dark"] .pw-strength[data-level="good"] .pw-strength-text { color: #7dd3fc; }
.landing-page[data-theme="dark"] .pw-strength[data-level="strong"] .pw-strength-text { color: #86efac; }
.landing-page[data-theme="dark"] .pw-strength-checklist li {
  color: #9eb4d4;
}
.landing-page[data-theme="dark"] .pw-strength-checklist li.met {
  color: #86efac;
}
.landing-page[data-theme="dark"] .pw-check-mark {
  border-color: rgba(198, 214, 239, 0.35);
}
.landing-page[data-theme="dark"] .ca-inline-link,
.landing-page[data-theme="dark"] .ca-link-btn {
  color: #93c5fd;
}
.landing-page[data-theme="dark"] .auth-remember {
  color: #C6D6EF;
}
.landing-page[data-theme="dark"] .auth-remember input[type="checkbox"]:checked {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}
.landing-page[data-theme="dark"] .auth-remember input[type="checkbox"]:checked::after {
  border-color: #18233F;
}
.landing-page[data-theme="dark"] .password-hint.invalid { color: #fca5a5; }
.landing-page[data-theme="dark"] .password-hint.valid { color: #86efac; }
.landing-page[data-theme="dark"] .policy-reader {
  background: #18233F;
  color: #ECF4FF;
  border: 1px solid rgba(198, 214, 239, 0.18);
}
.landing-page[data-theme="dark"] .policy-reader-head,
.landing-page[data-theme="dark"] .policy-reader-foot {
  border-color: rgba(198, 214, 239, 0.18);
}
.landing-page[data-theme="dark"] .policy-reader-head h3,
.landing-page[data-theme="dark"] .policy-reader-body h4 {
  color: #ECF4FF;
}
.landing-page[data-theme="dark"] .policy-reader-body p {
  color: #C6D6EF;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-headline { max-width: 100%; }
  .hero-logo-frame {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
  }
}

@media (max-width: 640px) {
  .landing-header {
    padding: 0 16px;
    height: 64px;
    gap: 10px;
  }

  .header-ormoc-logo {
    height: 26px;
    max-width: min(140px, 40vw);
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
  }

  .landing-hero {
    padding: 88px 16px 40px;
  }

  .hero-brand {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero-headline {
    font-size: clamp(20px, 5.6vw, 24px);
    max-width: 100%;
  }

  .hero-desc {
    font-size: 14px;
    padding: 0 4px;
  }

  .hero-logo-frame {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  .role-drawer {
    top: 64px;
    width: min(300px, 92vw);
  }

  .hero-cta {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-btn,
  .hero-cta .hero-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-cta .hero-btn-create {
    box-shadow: 0 2px 8px rgba(11, 18, 32, 0.2);
  }

  .hero-portal-link {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .ca-grid {
    grid-template-columns: 1fr;
  }

  .ca-step span:last-child {
    display: none;
  }

  .landing-page {
    --auth-card-radius: 16px;
    --auth-card-padding: 16px;
  }

  .landing-modal-overlay {
    padding: 12px;
    align-items: stretch;
  }

  .landing-modal-wrap {
    width: 100%;
    height: auto;
    max-height: 100%;
    margin: auto 0;
  }

  .landing-modal-wrap:has(.landing-modal-register) {
    height: min(var(--auth-card-height), 100%);
  }

  .landing-modal,
  .landing-modal.landing-modal-wide {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .landing-modal.landing-modal-register {
    width: 100%;
    max-width: 100%;
    height: min(var(--auth-card-height), 100%);
    border-radius: var(--auth-card-radius);
    padding: var(--auth-card-padding);
  }

  .ca-agree-check {
    font-size: 12.5px;
  }

  .ca-consent-error {
    margin-left: 0;
  }

  .pw-strength {
    padding: 9px 10px;
  }

  .pw-strength-checklist li {
    font-size: 11.5px;
  }

  .landing-modal-foot {
    flex-direction: column;
  }
}

/* ---- Registration: Philippine address picker ---- */
.ca-address-field .ph-addr-grid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 12px; }
.ca-address-field .ph-addr-field{ display:flex; flex-direction:column; gap:5px; margin:0; min-width:0; }
.ca-address-field .ph-addr-field label{ font-size:13px; font-weight:600; }
.ca-address-field select,
.ca-address-field input{ min-height:44px; font-size:15px; width:100%; }
.ca-address-field .ph-addr-street{ margin-top:10px; }
.ca-address-field .ph-addr-req{ color:#f87171; }
.ca-address-field .ph-addr-opt{ font-weight:400; opacity:.75; }
.ca-address-field .ph-addr-status{ margin-top:6px; font-size:13px; }
.ca-address-field .ph-addr-status.is-error{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.45); }
.ca-address-field select:disabled{ opacity:.6; }
@media (max-width:640px){ .ca-address-field .ph-addr-grid{ grid-template-columns:1fr; } }
/* ---------- Footer (TDFRO contact) ---------- */
.landing-page {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}
.landing-page .landing-hero {
  flex: 1 0 auto;
  min-height: 0;
  padding-bottom: 40px;
}
.landing-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border-top: 1px solid var(--landing-line);
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(6px);
  color: #C6D6EF;
  font-size: 13px;
}
.landing-footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.landing-footer-office b { display: block; font-weight: 600; color: #ECF4FF; }
.landing-footer-office span { display: block; margin-top: 2px; font-size: 12px; color: var(--landing-muted); }
.landing-footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.landing-footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
}
.landing-footer-contacts a:hover { color: #ffffff; text-decoration: underline; }
.landing-footer-contacts a:focus-visible { outline: 2px solid var(--landing-amber); outline-offset: 3px; }
.landing-footer-contacts svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--landing-amber); }
.landing-page[data-theme="light"] .landing-footer {
  background: rgba(255, 255, 255, 0.82);
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}
.landing-page[data-theme="light"] .landing-footer-office b { color: #0f172a; }
.landing-page[data-theme="light"] .landing-footer-office span { color: #64748b; }
.landing-page[data-theme="light"] .landing-footer-contacts a:hover { color: #0f172a; }
@media (max-width: 640px) {
  .landing-footer-inner { padding: 14px 16px; flex-direction: column; align-items: flex-start; }
  .landing-footer-contacts { flex-direction: column; gap: 4px; }
}

@media (max-width: 360px) {
  .landing-header { padding: 0 12px; }
  .header-ormoc-logo { max-width: min(120px, 46vw); height: 24px; }
  .hero-logo-frame {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .hero-marks { gap: 8px; }
  .landing-hero { padding: 80px 12px 32px; }
  .hero-cta { gap: 10px; }
}
