.customer-auth {
  --customer-ink: #24162d;
  --customer-muted: #746b79;
  --customer-canvas: #f6f4f7;
  --customer-surface: #fff;
  --customer-soft: #f1edf3;
  --customer-line: #ded8e1;
  --customer-accent: #9b177f;
  --customer-accent-dark: #7d1268;
  min-height: 100dvh;
  padding: calc(var(--bringall-safe-top, 0px) + 24px) 16px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-block: 24px 38vh;
  display: grid;
  place-items: center;
  background: var(--customer-canvas);
  color: var(--customer-ink);
  font-family: inherit;
}

.customer-auth-stage {
  width: min(100%, 460px);
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 16px;
  background: var(--customer-surface);
  box-shadow: 0 16px 40px rgba(36, 22, 45, .08);
}

.customer-auth-stage > header,
.customer-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-auth-stage > header { padding: 20px 24px 16px; }

.customer-auth-stage > header img,
.customer-auth-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.customer-auth-stage > header div,
.customer-auth-brand span { display: grid; gap: 2px; }
.customer-auth-stage > header strong,
.customer-auth-brand strong { font-size: 1.1rem; font-weight: 600; }
.customer-auth-stage > header span,
.customer-auth-brand small { color: var(--customer-muted); font-size: .82rem; font-weight: 500; }

.customer-auth-route {
  position: relative;
  height: 16px;
  margin: 0 24px;
}

.customer-auth-route::before,
.customer-auth-route span {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
}

.customer-auth-route::before { width: 100%; background: #e9e4eb; }
.customer-auth-route span { background: var(--customer-accent); transition: width .2s ease; }
.customer-auth-route i {
  position: absolute;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--customer-surface);
  border-radius: 50%;
  background: var(--customer-accent);
  box-shadow: 0 0 0 1px var(--customer-accent);
  transition: left .2s ease;
}

.customer-auth-content { padding: 24px; }
.customer-auth-content h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.customer-auth-content > p { margin: 0 0 24px; color: var(--customer-muted); line-height: 1.55; }
.customer-auth-content label { display: grid; gap: 8px; margin: 0 0 16px; font-size: .9rem; font-weight: 600; }
.customer-auth-content label small { color: var(--customer-muted); font-size: .78rem; font-weight: 400; }

.customer-auth-content input,
.customer-auth-content select,
.customer-auth-content textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cfc7d2;
  border-radius: 9px;
  outline: none;
  background: var(--customer-surface);
  color: var(--customer-ink);
  font: inherit;
}

.customer-auth-content textarea { min-height: 104px; padding-block: 12px; resize: vertical; line-height: 1.45; }
.customer-auth-content input:focus,
.customer-auth-content select:focus,
.customer-auth-content textarea:focus { border-color: var(--customer-accent); box-shadow: 0 0 0 3px rgba(155, 23, 127, .12); }

.customer-auth-primary,
.customer-auth-secondary {
  width: 100%;
  min-height: 52px;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.customer-auth-primary { border: 0; background: var(--customer-accent); color: #fff; }
.customer-auth-primary:hover { background: var(--customer-accent-dark); }
.customer-auth-secondary { margin-top: 12px; border: 1px solid #d3cbd6; background: var(--customer-surface); color: #4d3155; }
.customer-auth-primary:active,
.customer-auth-secondary:active { transform: scale(.99); }
.customer-auth-primary:disabled,
.customer-auth-links button:disabled { cursor: wait; opacity: .58; }

.customer-phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfc7d2;
  border-radius: 9px;
}
.customer-phone-field:focus-within { border-color: var(--customer-accent); box-shadow: 0 0 0 3px rgba(155, 23, 127, .12); }
.customer-phone-field span { padding: 0 12px; border-right: 1px solid var(--customer-line); color: #514657; font-variant-numeric: tabular-nums; }
.customer-phone-field input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.customer-phone-confirmation { display: grid; gap: 6px; margin: 0 0 20px; padding: 18px; border: 1px solid var(--customer-line); border-radius: 10px; background: #faf9fa; text-align: center; }
.customer-phone-confirmation span { color: var(--customer-muted); font-size: .8rem; }
.customer-phone-confirmation strong { color: var(--customer-ink); font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.customer-auth.is-keyboard-open { place-items: start center; padding-top: calc(var(--bringall-safe-top, 0px) + 10px); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.customer-otp-input { font-size: 1.35rem !important; letter-spacing: .28em; font-variant-numeric: tabular-nums; }

.customer-auth-assurance { margin: 16px 0 0 !important; font-size: .8rem; }
.customer-auth-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.customer-auth-links button,
.customer-auth-text-button { padding: 8px 0; border: 0; background: transparent; color: var(--customer-accent-dark); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.customer-auth-text-button { width: 100%; margin-top: 12px; }

.customer-auth-message { margin: 16px 0 0 !important; padding: 12px 14px; border-left: 3px solid #b33a30; border-radius: 6px; background: #fff3f1; color: #8e2e26 !important; }
.customer-auth-verified,
.customer-auth-area,
.customer-auth-location-note {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--customer-line);
  border-radius: 10px;
  background: #faf9fa;
}
.customer-auth-verified span,
.customer-auth-area span,
.customer-auth-location-note span { color: var(--customer-muted); font-size: .8rem; }
.customer-auth-verified strong { font-variant-numeric: tabular-nums; }
.customer-auth-location-note + .customer-auth-primary { margin-top: 20px; }
.customer-auth-location-ok,
.customer-auth-location-pending { margin: 0 0 16px !important; padding: 10px 12px; border-radius: 8px; font-size: .82rem; }
.customer-auth-location-ok { background: #edf7f1; color: #276742 !important; }
.customer-auth-location-pending { background: #f4f1f5; color: var(--customer-muted) !important; }

.customer-auth-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 16px 24px 20px; }
.customer-auth-stage > .customer-auth-footer { justify-content: flex-start; border-top: 1px solid #ece7ee; }
.customer-auth-footer a { color: var(--customer-muted); font-size: .8rem; }
.customer-auth-footer a:last-child { color: var(--customer-accent-dark); font-weight: 600; }

.customer-auth--web { grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); place-items: stretch; padding: 0; }
.customer-auth-intro {
  min-height: 100dvh;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  background: #2d123f;
  color: #fff;
}
.customer-auth-brand { width: max-content; color: #fff; text-decoration: none; }
.customer-auth-brand img { width: 48px; height: 48px; }
.customer-auth-brand small { color: #cfc3d5; }
.customer-auth-intro-copy { max-width: 620px; margin: auto 0; padding: 64px 0; }
.customer-auth-eyebrow { margin: 0 0 16px; color: #d6c8dc; font-size: .82rem; font-weight: 500; }
.customer-auth-intro h2 { max-width: 580px; margin: 0; font-size: clamp(2.7rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.customer-auth-intro-copy > p:not(.customer-auth-eyebrow) { max-width: 530px; margin: 24px 0 0; color: #ded4e2; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; }
.customer-auth-local-route { display: grid; grid-template-columns: auto minmax(36px, 120px) auto; align-items: center; gap: 12px; width: min(100%, 500px); margin-top: 40px; color: #e8dfea; font-size: .82rem; }
.customer-auth-local-route b { position: relative; height: 1px; background: rgba(255,255,255,.38); }
.customer-auth-local-route b::before,
.customer-auth-local-route b::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #2d123f; }
.customer-auth-local-route b::before { left: 0; }
.customer-auth-local-route b::after { right: 0; }
.customer-auth-offerings { display: flex; flex-wrap: wrap; gap: 24px; color: #cfc3d5; font-size: .82rem; }
.customer-auth-offerings span { position: relative; padding-left: 14px; }
.customer-auth-offerings span::before { content: ""; position: absolute; top: .5em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #e04bb8; }
.customer-auth-access { min-width: 0; padding: clamp(24px, 6vw, 84px); display: grid; grid-template-rows: 1fr auto; background: var(--customer-canvas); }
.customer-auth-access > .customer-auth-stage { align-self: center; justify-self: center; }
.customer-auth--web .customer-auth-stage > header { display: none; }
.customer-auth--web .customer-auth-route { margin-top: 24px; }
.customer-auth--web .customer-auth-content { padding: clamp(28px, 4vw, 40px); }
.customer-auth--web .customer-auth-content h1 { font-size: clamp(1.9rem, 3.2vw, 2.45rem); }

.customer-recovery-email { margin-top: 20px; }
.customer-recovery-email form { display: grid; gap: 12px; }
.customer-recovery-email .button { width: max-content; }

@media (max-width: 820px) {
  .customer-auth--web { grid-template-columns: 1fr; }
  .customer-auth-intro { min-height: auto; padding: calc(var(--bringall-safe-top, 0px) + 24px) 20px 32px; }
  .customer-auth-intro-copy { padding: 40px 0 32px; }
  .customer-auth-intro h2 { max-width: 540px; font-size: clamp(2.3rem, 10vw, 3.8rem); }
  .customer-auth-access { min-height: 54dvh; padding: 28px 16px calc(24px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
  .customer-auth:not(.customer-auth--web) { padding-right: 12px; padding-left: 12px; }
  .customer-auth-content,
  .customer-auth--web .customer-auth-content { padding: 24px 18px; }
  .customer-auth-stage > header { padding-right: 18px; padding-left: 18px; }
  .customer-auth-route { margin-right: 18px; margin-left: 18px; }
  .customer-auth-links { align-items: flex-start; flex-direction: column; gap: 4px; }
  .customer-auth-offerings { gap: 12px 20px; }
  .customer-auth.is-keyboard-open .customer-auth-stage { border-radius: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .customer-auth--web .customer-auth-stage { animation: customer-auth-card-in .22s ease-out both; }
  @keyframes customer-auth-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  .customer-auth-route span,
  .customer-auth-route i { transition: none; }
}
