:root {
  --ink: #101828;
  --muted: #667085;
  --line: #d9e1ea;
  --orange: #ff7a00;
  --orange-2: #ff9f1c;
  --gold: #f4ae2b;
  --gold-pale: #ffd978;
  --night: #090a0d;
  --panel: #101217;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #edf4fb;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body { min-width: 320px; overflow-x: hidden; }

button, input { font: inherit; }

button { cursor: pointer; }

.auth-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 58px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.98), transparent 26%),
    radial-gradient(circle at 80% 84%, rgba(204,225,245,.7), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #eaf3fb 100%);
}

.ambient {
  position: absolute;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  z-index: -1;
  animation: ambientFloat 9s ease-in-out infinite alternate;
}

.ambient--one { left: -180px; top: -150px; background: #fff; }
.ambient--two { right: -140px; bottom: -220px; background: #b8d8f7; animation-delay: -3s; }

.login-card {
  width: min(100%, 1000px);
  min-height: min(660px, calc(100svh - 100px));
  display: grid;
  grid-template-columns: .96fr 1.14fr;
  overflow: hidden;
  border: 6px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(65, 91, 119, .17), 0 0 0 1px rgba(123,148,176,.22);
  transition: opacity .45s ease, transform .65s cubic-bezier(.22,.74,.2,1), filter .45s ease;
}

.login-card.is-leaving { opacity: 0; transform: scale(.94) translateY(12px); filter: blur(10px); pointer-events: none; }

.client-sms h2 { margin: 0; font: 700 clamp(27px, 2.2vw, 33px)/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
.code-inputs--sms-light input { width: 16.66%; }
.client-resend { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.client-resend button { padding: 0; border: 0; color: var(--orange); background: none; text-decoration: underline; text-underline-offset: 3px; }
.client-resend button:disabled { color: #98a2b3; cursor: default; text-decoration: none; }
.ghost-link { display: block; width: 100%; margin-top: 14px; border: 0; background: none; color: var(--muted); font-weight: 700; }

.brand-panel {
  padding: clamp(34px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 0 100%, rgba(199,225,249,.65), transparent 42%),
    linear-gradient(145deg, #fff 0%, #f1f7fd 100%);
  border-right: 1px solid #e7eef5;
}

.brand { display: inline-flex; align-items: center; gap: 14px; width: fit-content; color: var(--ink); text-decoration: none; }

.brand-mark { width: 75px; height: 35px; display: flex; align-items: center; }
.brand-mark i { display: block; width: 31px; height: 25px; border: 4px solid var(--orange); border-radius: 50%; margin-left: -7px; }
.brand-mark i:first-child { margin-left: 0; }

.brand-name { font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.brand-name small { display: block; font-size: 7px; margin-top: 6px; letter-spacing: .24em; }

.brand-copy { margin-top: clamp(42px, 6vh, 58px); }
.eyebrow { margin: 0 0 14px; color: var(--orange); font: 700 12px/1 "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.brand-copy h1 { margin: 0; font: 700 clamp(31px, 3vw, 41px)/1.14 "Manrope", sans-serif; letter-spacing: -.045em; }
.brand-copy > p:last-child { max-width: 410px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.benefits { list-style: none; display: grid; gap: 17px; margin: 31px 0 0; padding: 0; }
.benefits li { display: flex; gap: 17px; align-items: center; }
.benefit-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--orange); background: #fff0e4; }
.benefit-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.benefits strong, .benefits small { display: block; }
.benefits strong { font-size: 15px; font-weight: 700; }
.benefits small { margin-top: 4px; color: var(--muted); font-size: 13px; }

.trust-row { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 24px; color: var(--muted); }
.trust-row p { margin: 0; font-size: 13px; line-height: 1.45; }
.trust-row strong { color: #344054; }
.avatars { display: flex; }
.avatars span { width: 28px; height: 28px; display: grid; place-items: center; margin-left: -7px; border: 2px solid white; border-radius: 50%; background: linear-gradient(145deg,#d7e1ec,#8091a5); color: white; font-size: 8px; font-weight: 700; }
.avatars span:first-child { margin-left: 0; }

.form-panel { padding: clamp(34px, 4vw, 48px); display: flex; flex-direction: column; }
.form-wrap { width: min(100%, 470px); margin: auto; }
.welcome { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.form-panel h2 { margin: 0; font: 700 clamp(27px, 2.2vw, 33px)/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
.intro { margin: 13px 0 30px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.field-group { margin: 0; padding: 0; border: 0; }
.field-group legend { margin-bottom: 14px; font-size: 14px; font-weight: 700; }
.code-inputs { display: flex; gap: 14px; }
.code-inputs input {
  min-width: 0;
  height: 61px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  background: #fbfdff;
  caret-color: var(--orange);
  transition: border .2s ease, box-shadow .2s ease, transform .2s ease;
}
.code-inputs--phone input { width: 25%; }
.code-inputs input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,122,0,.13); transform: translateY(-2px); }
.code-inputs input:not(:placeholder-shown) { background: #fff; }
.field-error { min-height: 20px; margin: 7px 0 0; color: #c43232; font-size: 13px; }

.primary-button, .boss-button {
  width: 100%; height: 60px; border: 0; border-radius: 12px; display: flex; justify-content: center; align-items: center; gap: 12px; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
}
.primary-button { height: 55px; margin-top: 16px; color: white; background: linear-gradient(100deg, #ff7600, #ff9b17); box-shadow: 0 13px 30px rgba(255,122,0,.24); }
.primary-button svg, .boss-button svg, .back-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button:hover:not(:disabled), .boss-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.primary-button:disabled, .boss-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.primary-button.is-loading svg { animation: arrowPulse .6s ease-in-out infinite alternate; }

.divider { display: flex; align-items: center; gap: 17px; margin: 19px 0; color: #98a2b3; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.email-button { width: 100%; height: 54px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 11px; color: var(--ink); background: #fff; font-weight: 700; transition: border .2s, transform .2s; }
.email-button:hover { border-color: #98a2b3; transform: translateY(-1px); }
.email-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.security-note { width: min(100%, 470px); margin: auto auto 0; padding-top: 22px; display: flex; align-items: center; gap: 15px; color: #8794a7; }
.security-note svg { width: 28px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-note p { margin: 0; font-size: 12px; line-height: 1.45; }
.security-note strong { color: #607087; font-size: 13px; }

.boss-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 64px), 1180px);
  height: min(760px, calc(100svh - 64px));
  min-height: 620px;
  z-index: 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(244,174,43,.7);
  border-radius: 28px;
  color: white;
  background: #08090b;
  box-shadow: 0 38px 95px rgba(0,0,0,.38), 0 0 60px rgba(244,174,43,.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(1.035);
  transition: opacity .55s ease, transform .85s cubic-bezier(.18,.8,.18,1), visibility 0s linear .85s;
}
.boss-stage.is-active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }

.boss-backdrop { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(4,5,7,.76) 0%, rgba(4,5,7,.35) 48%, rgba(4,5,7,.12) 75%, rgba(4,5,7,.48) 100%), url("../assets/boss-office.webp"); background-size: cover; background-position: center; transform: scale(1.07); transition: transform 7s ease-out; }
.boss-stage.is-active .boss-backdrop { transform: scale(1); }
.boss-vignette { position: absolute; inset: 0; background: radial-gradient(circle at 70% 42%, transparent 0 23%, rgba(5,5,7,.12) 55%, rgba(2,3,4,.88) 100%), linear-gradient(0deg, rgba(2,3,4,.95) 0%, transparent 32%); pointer-events: none; }
.gold-sweep { position: absolute; inset: -50%; background: linear-gradient(105deg, transparent 42%, rgba(255,211,113,.22) 49%, rgba(255,255,255,.48) 50%, rgba(255,184,45,.18) 51%, transparent 58%); transform: translateX(-100%); pointer-events: none; }
.boss-stage.is-active .gold-sweep { animation: sweep 1.15s .15s ease-out both; }

.boss-header, .boss-content, .boss-footer { position: relative; z-index: 2; }
.boss-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 38px 12px; }
.brand--gold { color: white; }
.brand--gold .brand-mark i { border-color: var(--gold); }
.back-button { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.7); background: rgba(8,10,13,.42); backdrop-filter: blur(12px); }
.back-button:hover { color: white; border-color: rgba(244,174,43,.6); }

.boss-content { width: min(100%, 620px); margin: auto; left: -12%; align-self: center; padding: 4px 0 12px; }
.boss-bubble { width: fit-content; min-width: 310px; position: relative; padding: 18px 22px; border: 1px solid rgba(244,174,43,.42); border-radius: 16px; background: linear-gradient(135deg, rgba(35,27,19,.92), rgba(10,11,13,.82)); box-shadow: 0 18px 45px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.09); backdrop-filter: blur(16px); transform: translateY(25px); opacity: 0; }
.boss-bubble::after { content: ""; position: absolute; bottom: -13px; right: 62px; width: 24px; height: 24px; border-right: 1px solid rgba(244,174,43,.42); border-bottom: 1px solid rgba(244,174,43,.42); background: rgba(13,13,14,.86); transform: rotate(45deg); }
.boss-stage.is-active .boss-bubble { animation: rise .7s .55s ease-out both; }
.boss-kicker { display: block; margin-bottom: 10px; color: var(--gold); font: 700 11px/1 "Manrope", sans-serif; letter-spacing: .2em; }
.boss-bubble h2 { margin: 0; color: #ffd984; font: 700 clamp(24px, 2.6vw, 31px)/1.1 "Manrope", sans-serif; letter-spacing: -.035em; }
.boss-bubble p { margin: 10px 0 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.42; }

.sms-card { width: min(100%, 570px); margin: 18px 0 0 32px; padding: 23px 25px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(145deg, rgba(24,26,31,.93), rgba(10,11,14,.95)); box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(18px); transform: translateY(36px); opacity: 0; }
.boss-stage.is-active .sms-card { animation: rise .75s .72s ease-out both; }
.sms-topline { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.sms-heading { display: flex; gap: 16px; align-items: center; }
.phone-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(244,174,43,.68); border-radius: 50%; color: var(--gold); }
.phone-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sms-heading h3 { margin: 0 0 5px; font: 700 19px/1.2 "Manrope", sans-serif; }
.sms-heading p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.4; }
.countdown { width: 59px; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; background: conic-gradient(var(--gold) var(--progress, 100%), rgba(255,255,255,.13) 0); position: relative; }
.countdown::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #1a1b1f; }
.countdown span { position: relative; }

.field-group--sms { margin-top: 20px; }
.field-group--sms legend { color: rgba(255,255,255,.78); font-weight: 500; }
.code-inputs--sms { gap: 10px; }
.code-inputs--sms input { width: 16.66%; height: 54px; color: white; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.045); }
.code-inputs--sms input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,174,43,.15), 0 0 23px rgba(244,174,43,.34); }
.field-error--gold { color: #ffd978; }
.boss-button { height: 50px; color: #17120a; background: linear-gradient(110deg, #f6ae2a 0%, #ffe093 47%, #f7ad29 100%); background-size: 200% 100%; box-shadow: 0 14px 35px rgba(244,174,43,.22); }
.boss-button:hover:not(:disabled) { box-shadow: 0 17px 45px rgba(244,174,43,.38); background-position: 100% 0; }
.resend { margin: 18px 0 0; color: rgba(255,255,255,.58); text-align: center; font-size: 12px; }
.resend button { padding: 0; border: 0; color: #f8d27a; background: none; text-decoration: underline; text-underline-offset: 3px; }
.resend button:disabled { color: rgba(248,210,122,.65); cursor: default; }

.boss-footer { padding: 12px 34px 17px; }
.boss-footer ul { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; max-width: 1030px; margin: 0 auto; padding: 0; list-style: none; }
.boss-footer li { display: flex; justify-content: center; align-items: center; gap: 11px; }
.boss-footer li > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(244,174,43,.72); border-radius: 9px; }
.boss-footer strong, .boss-footer small { display: block; }
.boss-footer strong { font-size: 12px; }
.boss-footer small { margin-top: 3px; color: rgba(255,255,255,.55); font-weight: 400; }
.boss-signature { margin-top: 15px; text-align: center; }
.boss-signature em { display: block; font-family: Georgia, serif; color: rgba(255,255,255,.75); }
.boss-signature strong { margin-top: 6px; font-size: 10px; letter-spacing: .18em; }
.boss-signature strong span { color: var(--gold); }

.product-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 16px; font-size: 11px; letter-spacing: .015em; }
.product-meta a { color: inherit; font-weight: 700; text-decoration: none; }
.product-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-meta--light { width: min(100%, 470px); margin: 16px auto 0; padding-top: 13px; border-top: 1px solid #e9eef4; color: #98a2b3; }
.product-meta--dark { max-width: 720px; margin: 13px auto 0; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.37); }
.product-meta--dark a { color: rgba(244,174,43,.72); }

.spark { position: absolute; width: 3px; height: 3px; z-index: 1; border-radius: 50%; background: var(--gold-pale); box-shadow: 0 0 8px var(--gold); opacity: 0; animation: sparkFall var(--duration) var(--delay) linear infinite; }

.transition-flash { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(255,239,190,.96), rgba(255,166,36,.5) 34%, rgba(12,8,3,.92) 72%); mix-blend-mode: screen; }
.transition-flash.is-active { animation: flash .85s ease-out both; }

.success-overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: rgba(3,3,4,.77); backdrop-filter: blur(13px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.success-overlay.is-active { opacity: 1; visibility: visible; }
.success-card { width: min(100%, 470px); padding: 45px; border: 1px solid rgba(244,174,43,.55); border-radius: 24px; background: linear-gradient(145deg,#17181c,#090a0c); text-align: center; box-shadow: 0 0 80px rgba(244,174,43,.22); transform: scale(.88); transition: transform .55s cubic-bezier(.17,.84,.44,1); }
.success-overlay.is-active .success-card { transform: scale(1); }
.success-crown { display: block; color: var(--gold); font-size: 54px; filter: drop-shadow(0 0 14px rgba(244,174,43,.5)); }
.success-card h2 { margin: 10px 0; font: 700 32px/1.2 "Manrope", sans-serif; color: #ffe4a1; }
.success-card p { color: rgba(255,255,255,.65); }
.success-card button { margin-top: 14px; padding: 13px 20px; border: 1px solid rgba(244,174,43,.6); border-radius: 999px; background: transparent; color: var(--gold-pale); }

@keyframes ambientFloat { to { transform: translate(50px,35px) scale(1.12); } }
@keyframes arrowPulse { to { transform: translateX(5px); } }
@keyframes sweep { 0% { transform: translateX(-90%); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(90%); opacity: 0; } }
@keyframes rise { to { transform: translateY(0); opacity: 1; } }
@keyframes flash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sparkFall { 0% { transform: translate3d(0,-8vh,0); opacity: 0; } 12% { opacity: .8; } 100% { transform: translate3d(var(--drift),105vh,0); opacity: 0; } }

@media (max-width: 920px) {
  .auth-shell { padding: 18px; }
  .login-card { min-height: auto; grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-panel { min-height: calc(100svh - 36px); }
  .boss-stage { inset: 12px; width: auto; height: auto; min-height: calc(100svh - 24px); overflow-y: auto; transform: scale(1.02); }
  .boss-stage.is-active { transform: scale(1); }
  .boss-backdrop { background-position: 62% center; }
  .boss-content { width: auto; left: 0; margin: 50px 24px 0; }
  .boss-bubble { min-width: 0; }
  .sms-card { margin-left: 0; }
  .boss-footer ul { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .form-panel { padding: 32px 22px; }
  .intro { margin-bottom: 30px; }
  .code-inputs { gap: 9px; }
  .code-inputs input { height: 62px; }
  .boss-stage { border-radius: 20px; }
  .boss-header { padding: 22px; }
  .boss-header .brand-mark { width: 58px; }
  .boss-header .brand-mark i { width: 25px; height: 21px; border-width: 3px; }
  .brand--gold .brand-name { font-size: 14px; }
  .back-button { width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 0; }
  .boss-content { margin: 20px 16px 0; }
  .boss-bubble { padding: 20px; }
  .sms-card { padding: 21px 16px; border-radius: 18px; }
  .sms-heading p br { display: none; }
  .phone-icon { width: 44px; height: 44px; }
  .countdown { width: 58px; }
  .code-inputs--sms { gap: 6px; }
  .code-inputs--sms input { height: 54px; border-radius: 9px; font-size: 21px; }
  .boss-footer { padding-inline: 18px; }
  .boss-footer ul { grid-template-columns: 1fr 1fr; }
  .boss-footer li { justify-content: flex-start; }
  .boss-footer li > span { display: none; }
}

@media (max-height: 790px) and (min-width: 921px) {
  .login-card { min-height: 620px; }
  .brand-copy { margin-top: 32px; }
  .benefits { gap: 14px; margin-top: 23px; }
  .boss-header { padding-top: 22px; padding-bottom: 8px; }
  .boss-content { transform: scale(.92); transform-origin: center center; margin-top: -12px; margin-bottom: -12px; }
  .boss-footer { padding-bottom: 18px; }
}

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

.text-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fbfdff;
  transition: border .2s ease, box-shadow .2s ease;
}
.text-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,122,0,.13); }
.emergency-panel h2 { margin: 0; font: 700 clamp(27px, 2.2vw, 33px)/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
