/* The login stage stays mounted as the camera rises above the car. */
.passenger-app #s-login {
  --welcome-ink: #f5f7f4;
  --welcome-muted: #b6beb8;
  --welcome-accent: #a1ff79;
  --welcome-paper: #080a09;
  background: var(--welcome-paper);
  color: var(--welcome-ink);
  color-scheme: dark;
  min-height: 100dvh;
  overflow: hidden auto;
}
#s-login .mobility-header {
  position: absolute;
  justify-content: space-between;
  padding: calc(24px + env(safe-area-inset-top)) clamp(24px, 4vw, 64px) 12px;
  background: none;
}
#s-login .wordmark { color: var(--welcome-ink); font-size: 30px; letter-spacing: -.065em; }
#s-login .wordmark > span { background: var(--welcome-accent); box-shadow: 0 0 12px #a1ff7955; }
#s-login .city-label { display: inline-flex; gap: 7px; align-items: center; color: #d1d8d2; font-size: 13px; letter-spacing: 0; }
#s-login .city-label svg { width: 15px; height: 15px; color: var(--welcome-accent); }
#s-login .welcome-layout {
  box-sizing: border-box; position: relative; display: grid;
  grid-template-rows: minmax(230px, 1fr) auto;
  align-items: center; max-width: 1360px; min-height: 100svh; margin: auto;
  padding: calc(72px + env(safe-area-inset-top)) clamp(24px, 5vw, 68px) calc(34px + env(safe-area-inset-bottom));
}
#s-login .welcome-visual { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; isolation: isolate; }
#s-login .welcome-stage { position: absolute; inset: 0 max(-5vw, -68px); touch-action: pan-y; outline-offset: -4px; }
#s-login .welcome-stage[data-ready=true] { cursor: default; }
#s-login .welcome-stage canvas {
  width: 100%; height: 100%; display: block; opacity: 0; user-select: none;
  transition: opacity .4s ease-out;
  /* World-space ground fading preserves the car and its real silhouette. */
  mask-image: none;
}
#s-login .welcome-stage[data-ready=true] canvas { opacity: 1; }
#s-login .welcome-fallback { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .28s ease-out; }
#s-login .welcome-fallback img { width: min(96%, 590px); height: auto; }
#s-login .welcome-visual:has(.welcome-stage[data-ready=true]) .welcome-fallback { opacity: 0; }
#s-login .welcome-view-controls { position: absolute; top: 12px; right: 0; }
#s-login[data-form-open=true] .welcome-view-controls { display: none; }
#s-login[data-welcome-tour=arrival] .welcome-view-controls,#s-login[data-welcome-tour=cabin] .welcome-view-controls,#s-login[data-welcome-tour=journey] .welcome-view-controls{display:none}
#s-login .welcome-view-controls button {
  min-width:44px; min-height:44px; display:flex;align-items:center;gap:8px;padding:0 12px;
  background:#0c100eb8;border:1px solid #f5f7f42e;color:var(--welcome-ink);border-radius:12px;font-size:12px;
}
#s-login .welcome-view-controls button:hover { border-color: #a1ff7988; }
#s-login .welcome-view-controls svg { width: 16px; height: 16px; }
#s-login .welcome-copy, .passenger-app #s-login .auth-sheet {
  position: relative; inset: auto; justify-self: center; z-index: 1; width: 100% !important;
  max-width: 432px; max-height: none; margin: 0 auto; padding: 0 !important; overflow: visible;
  border: 0; background: transparent; color: var(--welcome-ink); box-shadow: none; animation: none;
}
#s-login .welcome-copy { padding-top: 12px !important; }
#s-login .welcome-copy h1, #s-login .auth-sheet h1 {
  color: var(--welcome-ink); margin: 0; font-weight: 580; letter-spacing: -.045em;
  font-size: clamp(34px, 8.5vw, 52px); line-height: 1.12; text-wrap: balance;
}
#s-login .welcome-copy p { color: var(--welcome-muted); font-size: 15px; margin: 12px 0 25px; }
#s-login #welcome-begin, #s-login .auth-sheet .cta {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 0 20px; border: 1px solid #f4f7f3; border-radius: 16px;
  background: #f4f7f3; color: #0b160c; font-size: 16px; font-weight: 650;
  box-shadow: 0 3px 22px #0004; transition: transform .18s ease-out, background .18s ease-out;
}
#s-login #welcome-begin:hover, #s-login .auth-sheet .cta:hover { background: #e2e3e7; }
#s-login #welcome-begin:active, #s-login .auth-sheet .cta:active { scale: var(--ui-press-scale-row,.985); }
#s-login .auth-sheet .cta:disabled { opacity: .58; cursor: wait; }
#s-login #welcome-begin svg, #s-login .auth-sheet .cta svg { width: 21px; height: 21px; }
#s-login :is(button, a, input, [tabindex]):focus-visible { outline: 2px solid var(--welcome-accent); outline-offset: 3px; }
#s-login[data-form-open=true] .welcome-layout { grid-template-rows: clamp(148px, 27svh, 290px) auto; align-content: start; row-gap: 8px; }
#s-login .auth-navigation { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
#s-login #welcome-back { display: flex; align-items: center; gap: 8px; min-height: 44px; background: transparent; color: var(--welcome-muted); padding: 0; border: 0; font-size: 14px; }
#s-login .auth-progress { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--welcome-muted); }
#s-login .auth-progress > span { margin-right: 6px; }
#s-login .auth-progress i { width: 18px; height: 3px; border-radius: 4px; background: #444b46; }
#s-login .auth-progress i:first-of-type, #s-login[data-welcome-step=code] .auth-progress i { background: var(--welcome-accent); }
#s-login .auth-code-label, #s-login[data-welcome-step=code] .auth-phone-label { display: none; }
#s-login[data-welcome-step=code] .auth-code-label { display: inline; }
#s-login .auth-sheet h1 { font-size: clamp(29px, 6.5vw, 38px); margin: 0 0 22px; }
#s-login .auth-sheet label { display: block; color: var(--welcome-muted); font-size: 13px; margin-bottom: 8px; }
#s-login .phone-field, #s-login .auth-sheet .code-input { background: #151916; border: 1px solid #48504a; border-radius: 14px; }
#s-login .phone-field { display: flex; align-items: center; margin-bottom: 14px; }
#s-login .phone-field:focus-within { border-color: var(--welcome-accent); box-shadow: 0 0 0 2px #a1ff7917; }
#s-login .auth-sheet input { min-width: 0; width: 100%; min-height: 54px; font: inherit; font-size: 16px; color: var(--welcome-ink); }
#s-login .phone-field input { flex: 1; background: transparent; border: 0; }
#s-login .auth-sheet input::placeholder { color: #a4aea6; opacity: 1; }
#s-login .auth-sheet .quiet-action { color: var(--welcome-muted) !important; min-height: 44px !important; }
#s-login .auth-sheet .auth-note, #s-login .inline-notice { color: var(--welcome-muted); font-size: 13px; line-height: 1.5; }
#s-login .auth-sheet .auth-note { margin: 14px 0 0; text-align: left; }
#s-login .auth-sheet .inline-notice { padding: 8px 0; border: 0; background: none; }
#s-login .auth-sheet #dev-code-hint:empty, #s-login [hidden] { display: none !important; }
#s-login .welcome-visual.is-transitioning { will-change: transform; }
@media (min-width: 900px), (min-width: 600px) and (max-height: 600px) {
  #s-login .welcome-layout, #s-login[data-form-open=true] .welcome-layout {
    grid-template: minmax(0, 1fr) / minmax(0, 1.45fr) minmax(0, 1fr); align-content: center; align-items: center;
    gap: clamp(32px, 5vw, 88px); padding-top: calc(94px + env(safe-area-inset-top));
  }
  #s-login .welcome-visual { height: clamp(345px, 68svh, 680px); }
  #s-login[data-form-open=true] .welcome-visual { height: clamp(300px, 58svh, 580px); }
  #s-login .welcome-stage { inset: 0 -3vw; }
  #s-login .welcome-stage canvas { mask-image: none; }
  #s-login .welcome-copy h1 { font-size: clamp(40px, 3.8vw, 54px); }
}
@media (max-height: 650px) and (max-width: 599px) {
  #s-login .welcome-layout { padding-top: calc(60px + env(safe-area-inset-top)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); grid-template-rows: minmax(160px, 1fr) auto; }
  #s-login[data-form-open=true] .welcome-layout { grid-template-rows: 122px auto; }
  #s-login .welcome-copy p { margin: 6px 0 14px; }
  #s-login .auth-navigation { margin-bottom: 4px; }
  #s-login .auth-sheet h1 { margin-bottom: 12px; }
}
@media (min-width: 600px) and (max-height: 600px) {
  #s-login .welcome-layout, #s-login[data-form-open=true] .welcome-layout { grid-template-columns: 1fr 1fr; padding-top: 64px; padding-bottom: 18px; }
  #s-login .welcome-visual, #s-login[data-form-open=true] .welcome-visual { height: max(185px, calc(100svh - 96px)); }
  #s-login .auth-navigation { margin-bottom: 0; }
  #s-login .auth-sheet h1 { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #s-login *, #s-login *::before { animation: none !important; transition: none !important; }
  #s-login #welcome-begin:active, #s-login .auth-sheet .cta:active { scale: none; }
}

#s-login #welcome-begin > span {display:grid;place-items:center;width:26px;height:26px}
#s-login .welcome-copy h1 {max-width:13em;letter-spacing:-.038em}

/* The surrounding surface follows the same appearance as its 3D scene. */
html[data-theme=light] .passenger-app #s-login {
  --welcome-ink:#14221a;--welcome-muted:#46564d;--welcome-accent:#176638;
  --welcome-paper:#edf1ee;
  color-scheme:light;
}
html[data-theme=light] #s-login .wordmark {color:var(--welcome-ink)}
html[data-theme=light] #s-login .wordmark>span {background:#176638;box-shadow:none}
html[data-theme=light] #s-login .city-label {color:#405348}
html[data-theme=light] #s-login .welcome-view-controls button {background:#fffffff0;color:#203d2b;border-color:#9eafa4;box-shadow:0 4px 18px #203d2b0d}
html[data-theme=light] #s-login #welcome-begin,
html[data-theme=light] #s-login .auth-sheet .cta {background:#145d35;border-color:#145d35;color:#fff;box-shadow:0 5px 18px #145d3514}
html[data-theme=light] #s-login .phone-field,
html[data-theme=light] #s-login .auth-sheet .code-input {background:#fff;border-color:#82978b}
html[data-theme=light] #s-login .auth-sheet input {color:#14221a}
html[data-theme=light] #s-login .auth-sheet input::placeholder {color:#52665a}
html[data-theme=light] #s-login .auth-progress i {background:#a0afa5}
#s-login .welcome-copy p,#s-login .auth-sheet label {font-size:16px;line-height:1.55}
#s-login .welcome-view-controls button {width:auto;height:44px}
#s-login #welcome-begin,#s-login .auth-sheet .cta {min-height:58px}

/* Four deliberate scenes. The passenger controls the pace; sign-in is always
   available and the tour never starts a simulated or real booking. */
#s-login .welcome-tour-meta{display:flex;align-items:center;gap:14px;margin:0 0 17px;color:var(--welcome-muted);font-size:12px;letter-spacing:.06em}
#s-login #welcome-tour-count{font-variant-numeric:tabular-nums;color:var(--welcome-accent)}
#s-login #welcome-tour-copy{min-height:145px}
#s-login #welcome-tour-description{max-width:32em;margin:14px 0 8px;line-height:1.55}
#s-login .welcome-tour-navigation{display:flex;gap:16px;margin:12px 0 23px}
#s-login .welcome-tour-navigation>button{display:flex;flex:1;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--welcome-muted);font-size:11px;font-variant-numeric:tabular-nums;transition:color .22s}
#s-login .welcome-tour-navigation>button i{height:2px;flex:1;background:currentColor;opacity:.3;transition:opacity .22s}
#s-login .welcome-tour-navigation>button[aria-pressed=true]{color:var(--welcome-accent);background:transparent;box-shadow:none}
#s-login .welcome-tour-navigation>button[aria-pressed=true] i{opacity:1;box-shadow:0 0 10px #a1ff7922}
#s-login .welcome-signin-note{display:block;margin:13px 0 0;color:var(--welcome-muted);font-size:12px;text-align:center;line-height:1.5}
html[data-theme=light] #s-login .welcome-tour-navigation>button{background:transparent}
html[data-theme=light] #s-login .welcome-tour-navigation>button[aria-pressed=true]{color:#176638;background:transparent;box-shadow:none}
html[data-theme=light] #s-login .welcome-tour-navigation>button[aria-pressed=true] i{box-shadow:none}
@media(max-width:599px) and (max-height:740px){
  #s-login #welcome-tour-copy{min-height:119px}
  #s-login .welcome-tour-meta{margin-bottom:10px}
  #s-login .welcome-tour-navigation{margin:5px 0 15px}
  #s-login .welcome-copy h1{font-size:32px}
  #s-login .welcome-signin-note{margin-top:9px}
}

@media (max-width:899px) and (min-height:601px) {
  #s-login .welcome-visual::after {
    content:"";
    position:absolute;
    z-index:1;
    inset:auto max(-5vw, -68px) -1px;
    height:clamp(36px,10svh,86px);
    background:linear-gradient(transparent,var(--welcome-paper));
    pointer-events:none;
  }
  #s-login .welcome-view-controls {z-index:2}
  @supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    #s-login .welcome-visual::after {
      -webkit-backdrop-filter:var(--passenger-backdrop-blur,none);
      backdrop-filter:var(--passenger-backdrop-blur,none);
      mask-image:linear-gradient(transparent 5%,#000 92%);
    }
  }
}
