:root {
  --entry-navy: #061b38;
  --entry-navy-2: #0b315e;
  --entry-teal: #12bfa6;
  --entry-teal-dark: #087c68;
  --entry-ink: #071b37;
  --entry-muted: #667386;
  --entry-border: #aab5c3;
  --entry-surface: #ffffff;
  --entry-canvas: #f7f9fb;
}

body:has(.entry-shell) {
  margin: 0;
  background: var(--entry-canvas);
  color: var(--entry-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.entry-shell) main,
body:has(.entry-shell) .container-fluid {
  padding: 0 !important;
}

.landing-page-home {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  background: #fff;
}

.entry-shell {
  position: relative;
  display: block;
  min-height: 675px;
  overflow: visible;
  isolation: isolate;
  background: #111827;
}

.entry-shell-search { min-height: clamp(560px, 66.5svh, 640px); }

.entry-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 12, 27, .6), rgba(4, 18, 36, .4) 48%, rgba(2, 10, 23, .62)),
    linear-gradient(180deg, rgba(3, 14, 28, .28), rgba(3, 14, 28, .56));
}

.entry-shell .landing-hero-carousel,
.entry-shell .landing-hero-primary,
.entry-shell .landing-hero-primary img,
.entry-shell .landing-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entry-shell .landing-hero-carousel { z-index: -2; }
.entry-shell .landing-hero-primary img,
.entry-shell .landing-hero-slide { object-fit: cover; background-position: center; background-size: cover; }

.entry-shell .landing-topbar {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 5;
  display: flex;
  width: min(900px, calc(100% - 48px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px 9px 20px;
  border: 1px solid rgba(215, 226, 232, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(2, 12, 27, .22);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.entry-shell .landing-brand {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  text-decoration: none;
}

.entry-shell .landing-brand-logo {
  display: block;
  width: auto;
  height: 48px;
}
.entry-shell .landing-brand-logo-accent { display: none; }

.entry-shell .landing-auth-link {
  display: inline-flex;
  min-width: 88px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1.5px solid var(--entry-navy-2);
  border-radius: 999px;
  color: var(--entry-ink);
  background: transparent;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
}

.entry-shell .landing-auth-link:hover,
.entry-shell .landing-auth-link:focus-visible {
  color: #fff;
  background: var(--entry-navy);
}

.entry-shell .entry-back-link { min-width: 150px; border-color: transparent; }

.landing-stage {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 675px;
  place-items: center;
  padding: 132px 24px 44px;
}

.entry-shell-search .landing-stage { min-height: clamp(560px, 66.5svh, 640px); }

@media (min-width: 768px) {
  .entry-shell.entry-shell-admin,
  .entry-shell-admin .landing-stage {
    min-height: calc(50vh + 337.5px);
  }
}

.landing-search-shell { width: min(720px, 100%); }
.landing-search-intro,
.landing-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.landing-search-form {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 56px;
  min-height: 78px;
  align-items: center;
  gap: 4px;
  padding: 9px 10px 9px 18px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 50px rgba(1, 12, 29, .3);
}

.landing-search-location { display: grid; width: 30px; height: 30px; place-items: center; color: var(--entry-teal); }
.landing-search-location svg { width: 30px; height: 30px; fill: currentColor; }
.landing-search-input {
  width: 100%;
  height: 56px;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--entry-ink);
  background: transparent;
  font: inherit;
  font-size: 18px;
  line-height: 24px;
}
.landing-search-input::placeholder { color: #6d7888; opacity: 1; }
.landing-search-button {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--entry-navy), var(--entry-navy-2));
  box-shadow: 0 9px 22px rgba(6, 27, 56, .28);
  font-size: 15px;
  font-weight: 600;
}
.landing-search-button svg { width: 28px; height: 28px; fill: currentColor; }
.landing-search-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.landing-capabilities {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 380px));
  justify-content: center;
  gap: 20px;
  padding: 24px clamp(24px, 4vw, 64px);
  background: #fff;
}
.landing-capability-card {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 24px;
  border: 1px solid #d7e2e8;
  border-radius: 18px;
  background: #fff;
}
.landing-capability-icon { color: var(--entry-teal); }
.landing-capability-icon svg { width: 40px; height: 40px; fill: currentColor; }
.landing-capability-card h2 { margin: 0 0 8px; color: var(--entry-ink); font-size: 15px; line-height: 20px; font-weight: 600; }
.landing-capability-card p { margin: 0; color: var(--entry-muted); font-size: 15px; line-height: 22px; }
.landing-page-home .landing-footer { min-height: 59px; margin-top: auto; }
.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 7px clamp(24px, 4vw, 64px); border-top: 1px solid #d7e2e8; background: #fff; color: var(--entry-muted); font-size: 12px; line-height: 16px; }
.landing-footer nav { display: flex; gap: 24px; }
.landing-footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--entry-ink); }

.entry-shell-auth { min-height: 100vh; }
.entry-shell-auth .landing-stage { min-height: 100vh; align-items: start; padding-top: 180px; }
.landing-auth-shell { width: min(500px, 100%); }
.landing-card {
  width: 100%;
  border: 1px solid rgba(215, 226, 232, .94) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .985) !important;
  box-shadow: 0 22px 60px rgba(2, 12, 27, .32) !important;
}
.landing-card .card-body { padding: 36px 44px 34px !important; }
.landing-auth-heading { margin: 0 0 20px; color: var(--entry-ink); font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: normal; text-transform: none; }
.landing-auth-intro { display: none; margin: -8px 0 28px; color: var(--entry-muted); font-size: 15px; line-height: 22px; }
.entry-provider-button { min-height: 56px; border: 1px solid var(--entry-border) !important; border-radius: 12px !important; color: var(--entry-ink) !important; background: #fff !important; font-size: 15px; line-height: 20px; font-weight: 600; }
.entry-auth-divider { display: flex; align-items: center; gap: 16px; margin: 22px 0 24px; color: var(--entry-muted); font-size: 15px; line-height: 22px; }
.entry-auth-divider::before,
.entry-auth-divider::after { height: 1px; flex: 1; content: ""; background: #d7e2e8; }
.landing-card .mb-3:has(> .entry-icon-input) { position: relative; }
.landing-card .form-label { display: block; margin: 0 0 9px; color: var(--entry-ink); font-size: 15px; line-height: 20px; font-weight: 600; }
.landing-card .form-control,
.landing-card .form-select { min-height: 56px; border: 1px solid var(--entry-border); border-radius: 12px; color: var(--entry-ink); background-color: #fff; font-size: 16px; line-height: 24px; }
.landing-card .entry-icon-input { padding-left: 50px; }
.entry-field-icon { position: absolute; top: 46px; left: 15px; z-index: 2; display: grid; width: 24px; height: 24px; place-items: center; color: #778495; pointer-events: none; }
.entry-field-icon svg { width: 24px; height: 24px; fill: currentColor; }
.landing-card .entry-password-input { padding-right: 52px; }
.entry-password-toggle { position: absolute; top: 41px; right: 7px; display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 10px; color: #778495; background: transparent; }
.entry-password-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.auth-forgot-link { display: flex; min-height: 44px; align-items: center; justify-content: flex-end; margin-top: 1px; }
.auth-forgot-link a,
.auth-create-account a { color: var(--entry-teal-dark); font-weight: 600; }
.landing-card .form-check { min-height: 44px; display: flex; align-items: center; gap: 10px; padding-left: 0; }
.landing-card .form-check-input { position: static; width: 20px; height: 20px; flex: 0 0 auto; margin: 0; }
.landing-card .form-check-label { margin: 0; font-size: 15px; line-height: 22px; }
.auth-primary-action { width: 100%; min-height: 56px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--entry-navy), var(--entry-navy-2)); font-size: 15px; line-height: 20px; font-weight: 600; }
.auth-create-account { margin: 22px 0 0; color: var(--entry-muted); text-align: center; font-size: 15px; line-height: 22px; }
.landing-card .text-danger { color: #a11827 !important; font-size: 15px !important; line-height: 22px; }
.landing-card .input-validation-error { border-color: #a11827; }
.landing-card :focus-visible,
.landing-search-form :focus-visible,
.landing-auth-link:focus-visible { outline: 3px solid #58d5c3; outline-offset: 3px; box-shadow: none; }

@media (max-width: 960px) {
  .landing-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .entry-shell { min-height: 100svh; padding-bottom: 0; }
  .entry-shell::before { background: linear-gradient(180deg, rgba(3, 13, 27, .42), rgba(3, 13, 27, .58)); }
  .entry-shell .landing-topbar {
    top: max(20px, env(safe-area-inset-top));
    width: 100%;
    min-height: 58px;
    padding: 5px 28px;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .entry-shell .landing-brand-logo { width: min(160px, 44vw); height: auto; filter: brightness(0) invert(1); }
  .entry-shell .landing-brand-logo-accent { position: absolute; inset: 0; display: block; clip-path: inset(0 0 0 79%); filter: none; }
  .entry-shell .landing-auth-link { min-width: 92px; min-height: 48px; padding: 8px 14px; border-color: #fff; color: #fff; background: rgba(5, 25, 51, .2); white-space: nowrap; }
  .entry-shell .entry-back-link { min-width: 126px; max-width: 140px; font-size: 15px; }
  .landing-stage { min-height: 100svh; align-items: end; padding: 132px 16px 0; }
  .entry-shell-search .landing-stage { min-height: 100svh; padding-top: min(53svh, 480px); }
  .landing-search-shell {
    width: min(100%, 680px);
    padding: 42px clamp(24px, 8vw, 54px) max(42px, env(safe-area-inset-bottom));
    border-radius: 32px 32px 0 0;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 -14px 40px rgba(2, 12, 27, .16);
  }
  .landing-search-intro,
  .landing-search-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
  .landing-search-intro h1 { margin: 0 0 12px; color: var(--entry-ink); font-size: 40px; line-height: 48px; font-weight: 600; }
  .landing-search-intro p { margin: 0 0 34px; color: var(--entry-muted); font-size: 18px; line-height: 28px; }
  .landing-search-label { display: block; margin-bottom: 10px; color: var(--entry-ink); font-size: 15px; line-height: 20px; font-weight: 600; }
  .landing-search-form { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .landing-search-location { z-index: 2; grid-column: 1; grid-row: 1; margin-left: 12px; }
  .landing-search-input { grid-column: 1 / -1; grid-row: 1; height: 58px; padding: 0 16px 0 56px; border: 1px solid var(--entry-border); border-radius: 12px; background: #fff; font-size: 16px; line-height: 24px; }
  .landing-search-button { grid-column: 1 / -1; width: 100%; height: 58px; margin-top: 12px; border-radius: 12px; }
  .landing-search-button span { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; }
  .landing-capabilities { grid-template-columns: 1fr; padding: 24px 16px; }
  .landing-capability-card { min-height: 0; flex-direction: row; padding: 24px; }
  .landing-capability-icon svg { width: 40px; height: 40px; }
  .landing-footer { align-items: flex-start; flex-direction: column; padding: 20px 24px; }

  .entry-shell-auth { min-height: 100svh; }
  .entry-shell-auth .landing-stage { min-height: 100svh; align-items: end; padding: min(45svh, 430px) 16px 0; }
  .landing-auth-shell { width: min(100%, 520px); }
  .landing-card { border-radius: 32px 32px 0 0 !important; border-bottom: 0 !important; }
  .landing-card .card-body { padding: 42px clamp(24px, 7vw, 44px) max(42px, env(safe-area-inset-bottom)) !important; }
  .landing-auth-heading { margin-bottom: 8px; }
  .landing-auth-intro { display: block; }
}

@media (max-width: 380px) {
  .entry-shell .landing-brand-logo { height: 36px; }
  .entry-shell .entry-back-link span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .entry-shell .entry-back-link { min-width: 48px; padding: 8px; }
  .landing-search-shell { padding-inline: 20px; }
  .landing-search-intro h1,
  .landing-auth-heading { font-size: 34px; line-height: 42px; }
  .landing-card .card-body { padding-inline: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-carousel-ready .landing-hero-slide { animation: none !important; }
}
