:root {
  --cream: #F7F2EB;
  --white: #FFFFFF;
  --ink: #171315;
  --muted: #71696C;
  --line: rgba(23, 19, 21, .13);
  --pink: #FA256C;
  --pink-dark: #D90F52;
  --teal: #4FD1C5;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; }
html { overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif; text-rendering: optimizeLegibility; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:where(a, button, input):focus-visible { outline: 3px solid rgba(250, 37, 108, .38); outline-offset: 3px; }
h1, h2 { text-wrap: balance; }
p, small, label { text-wrap: pretty; }

.login-boot { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; visibility: hidden; opacity: 0; background: #fff; pointer-events: none; transition: opacity 140ms var(--ease), visibility 0s linear 140ms; }
html.js.is-booting body.is-booting .login-boot { visibility: visible; opacity: 1; transition-delay: 0s; }
.login-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.login-brand img { width: 44px; height: 44px; align-self: center; display: block; border-radius: 11px; }
.login-boot .login-brand { max-width: calc(100vw - 32px); gap: clamp(8px, 2vw, 10px); }
.login-boot .login-brand img { width: clamp(54px, 14vw, 72px); height: clamp(54px, 14vw, 72px); border-radius: clamp(14px, 3.5vw, 18px); }
.brand-word { font-size: 26px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.brand-product { padding-left: 10px; border-left: 1px solid rgba(23, 19, 21, .16); color: #716A6D; font-size: 15px; font-weight: 650; line-height: 1; }
.login-boot .brand-word { font-size: clamp(36px, 10vw, 48px); }
.login-boot .brand-product { padding-left: clamp(8px, 2vw, 10px); font-size: clamp(20px, 6vw, 28px); }

.login-shell { min-width: 0; min-height: 100svh; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr); }
.login-story { min-width: 0; min-height: 100svh; padding: clamp(28px, 4vw, 54px); position: relative; overflow: hidden; display: flex; flex-direction: column; color: #fff; background: var(--ink); }
.login-story .login-brand { color: #fff; }
.login-story .brand-product { color: rgba(255,255,255,.62); border-color: rgba(255,255,255,.2); }
.login-story::before { position: absolute; width: 420px; height: 420px; right: -180px; top: -170px; content: ""; border-radius: 50%; background: rgba(250,37,108,.16); filter: blur(55px); }
.login-story-copy { min-width: 0; margin-block: auto; position: relative; z-index: 1; }
.login-story-copy > p { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.58); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.login-story-copy > p i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(79,209,197,.11); }
.login-story h1 { margin: 0; font-size: clamp(56px, 6vw, 92px); line-height: .89; letter-spacing: -.065em; }
.login-story h1 > span,
.login-story h1 > em { display: block; }
.login-story h1 em { color: var(--pink); font-style: normal; }
.login-rate { margin-top: 30px; display: flex; align-items: baseline; gap: 12px; }
.login-rate strong { color: var(--pink); font-size: 42px; letter-spacing: -.05em; }
.login-rate span { min-width: 0; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.35; }
.login-proof { min-height: 150px; padding: 22px 22px 14px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.055); overflow: hidden; }
.login-proof span { position: relative; z-index: 2; display: grid; align-content: start; gap: 7px; }
.login-proof small { color: rgba(255,255,255,.54); font-size: 8px; font-weight: 850; letter-spacing: .1em; }
.login-proof strong { font-size: 27px; font-variant-numeric: tabular-nums; }
.login-proof span:last-of-type strong { color: var(--pink); }
.login-proof svg { position: absolute; inset: auto 0 0; width: 100%; height: 82px; }
.login-proof path { fill: none; stroke: var(--pink); stroke-width: 3; vector-effect: non-scaling-stroke; }

.login-panel { width: 100%; min-width: 0; min-height: 100svh; padding: 32px; display: grid; place-items: center; align-content: center; }
.login-card { width: 100%; max-width: 460px; min-width: 0; min-height: 500px; padding: clamp(32px, 5vw, 52px); display: grid; align-content: center; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 28px 80px rgba(45,28,35,.1), 0 2px 8px rgba(45,28,35,.04); }
.login-step { min-width: 0; animation: enter 380ms var(--ease) both; }
.login-step[hidden] { display: none; }
.login-eyebrow { color: var(--pink-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.login-step h2 { margin: 11px 0 10px; font-size: clamp(34px, 4vw, 46px); line-height: .98; letter-spacing: -.05em; }
.login-step > p { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.login-step > p b { color: var(--ink); overflow-wrap: anywhere; }
.login-step > .login-access-note { margin: -18px 0 22px; padding: 10px 12px; border-radius: 8px; color: #5E5558; background: #F8F3F5; font-size: 11px; line-height: 1.5; text-wrap: pretty; }
.login-step form { display: grid; gap: 11px; }
.login-step label { font-size: 11px; font-weight: 780; }
.login-input { min-height: 56px; display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.login-input:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(250,37,108,.1); }
.login-input svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-input input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.login-step form > button { min-height: 54px; margin-top: 5px; padding: 12px 16px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--pink-dark); border-radius: 10px; color: #fff; background: var(--pink-dark); box-shadow: 0 7px 16px rgba(217,15,82,.18); cursor: pointer; font-size: 13px; font-weight: 820; line-height: 1.25; text-align: left; transform: scale(1); transition-property: transform, background-color, box-shadow; transition-duration: 150ms; transition-timing-function: var(--ease); }
.login-step form > button span { flex: 0 0 auto; }
.login-step form > button:hover { background: #BB0B46; }
.login-step form > button:active { transform: scale(.96); }
.login-step form > button:disabled { opacity: .5; cursor: wait; }
.login-step > small { margin-top: 14px; display: block; color: var(--muted); font-size: 10px; text-align: center; }
.login-back, .login-resend { min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 760; line-height: 1.3; transform: scale(1); transition-property: color, transform; transition-duration: 150ms; transition-timing-function: var(--ease); }
.login-back { margin: -10px 0 14px; justify-content: flex-start; }
.login-resend { margin: 6px auto 0; text-decoration: underline; text-underline-offset: 3px; }
.login-back:hover, .login-resend:hover { color: var(--ink); }
.login-back:active, .login-resend:active { transform: scale(.96); }
.login-resend:disabled { opacity: .45; cursor: default; }
.login-expiry { min-height: 16px; margin: 11px 0 0 !important; color: var(--muted); font-size: 10px !important; text-align: center; font-variant-numeric: tabular-nums; }
.login-expiry.is-expired { color: #B10E43; font-weight: 700; }
.otp-fields { margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; border: 0; }
.otp-fields input { width: 100%; min-width: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #FCFAF7; outline: none; font-size: 24px; font-weight: 820; text-align: center; font-variant-numeric: tabular-nums; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), transform 150ms var(--ease); }
.otp-fields input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250,37,108,.11); transform: translateY(-1px); }
.login-status { min-height: 18px; margin: 15px 0 -8px; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.login-status.is-error { color: #B10E43; }
.login-status.is-success { color: #147B72; }
.login-help { min-height: 44px; margin: 12px 0 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px; color: var(--muted); font-size: 11px; text-align: center; }
.login-help a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-weight: 780; text-underline-offset: 3px; }

@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .login-shell { width: 100%; max-width: 100vw; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .login-story { min-height: 300px; padding: 24px; }
  .login-story-copy { margin: 55px 0 0; }
  .login-story h1 { font-size: clamp(48px, 14vw, 72px); }
  .login-proof { display: none; }
  .login-rate { margin-top: 20px; }
  .login-panel { min-height: auto; padding: 24px 18px 48px; }
  .login-card { margin-top: -52px; min-height: 450px; position: relative; z-index: 2; border-radius: 16px; }
}

@media (max-width: 470px) {
  .login-story { min-height: 265px; padding: 18px; }
  .login-story .login-brand img { width: 38px; height: 38px; }
  .login-story .brand-word { font-size: 23px; }
  .login-story .brand-product { font-size: 13px; }
  .login-story-copy { margin-top: 38px; }
  .login-story h1 { font-size: 52px; }
  .login-rate { display: none; }
  .login-panel { padding-inline: 12px; }
  .login-card { margin-top: 0; min-height: 430px; padding: 28px 20px; }
  .otp-fields { gap: 6px; }
  .otp-fields input { border-radius: 8px; font-size: 21px; }
}

@media (max-width: 340px) {
  .login-panel { padding-inline: 8px; }
  .login-card { padding-inline: 12px; }
  .otp-fields { gap: 2px; }
  .otp-fields input { min-height: 44px; aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
