/* =========================================================
   DEMETRY — Login e Cadastro
   Identidade: Pulso #7047EB · Elétrico #9B00FF · Lavanda #A78BFA
   Névoa #E7DEFF · Noite #0C0A14 · Grafite #32313D · Gelo #F5F3F9
   ========================================================= */

:root {
  --pulso: #7047EB;
  --pulso-400: #8B67F4;
  --pulso-600: #5B2FD9;
  --eletrico: #9B00FF;
  --lavanda: #A78BFA;
  --nevoa: #E7DEFF;
  --noite: #0C0A14;
  --grafite: #32313D;
  --gelo: #F5F3F9;
  --n800: #1D1B26;
  --field: #16141F;
  --line: rgba(255,255,255,.1);
  --muted: #9C99AE;

  --ok: #2ED47A;
  --warn: #FFB547;
  --err: #FF4D6A;

  --font: "Atyp BL Text", "Atyp BL", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Atyp BL Display", "Atyp BL", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Adapter Mono PE", "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; background: var(--noite); color: var(--gelo); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
svg { display: block; }
a { color: inherit; }
button, input, select { font: inherit; }
::selection { background: var(--pulso); color: #fff; }
:focus-visible { outline: 2px solid var(--lavanda); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none !important; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 17px; height: 17px; }
.ic.xs { width: 14px; height: 14px; }
.spk { width: 12px; height: 12px; fill: currentColor; flex: none; }

/* ---------- layout ---------- */
.auth { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
.auth-side { position: relative; isolation: isolate; overflow: hidden; overflow: clip; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px) 24px; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 55% at 30% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 30% 0%, #000 10%, transparent 75%); }
.auth-side::after { content: ""; position: absolute; z-index: -1; left: -20%; top: -30%; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(112,71,235,.22), transparent 62%); pointer-events: none; }

.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gelo); text-decoration: none; }
.logo-sym { width: 40px; height: 23px; fill: currentColor; overflow: visible; }
.logo-word { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.logo .logo-spark { transform-box: fill-box; transform-origin: center; animation: logo-spark .7s var(--ease) .15s both; }
@keyframes logo-spark { from { transform: scale(0) rotate(-90deg); } }
.top-link { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.top-link b { font-weight: 500; color: var(--gelo); transition: color .2s; }
.top-link:hover b { color: var(--lavanda); }

.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 520px; }

.auth-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: #6E6B80; }
.auth-foot a { text-decoration: none; transition: color .2s; }
.auth-foot a:hover { color: var(--gelo); }

/* ---------- tipografia ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lavanda); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.auth-title { margin: 14px 0 10px; font-family: var(--display); font-size: clamp(30px, 3.3vw, 42px); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; }
.auth-sub { margin-bottom: 30px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* entrada suave dos elementos */
.rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- formulário ---------- */
.form { display: grid; gap: 18px; }
.field { min-width: 0; border: 0; }
.field > label, .field legend, .label-row label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: #E7E4F0; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.label-row label { margin: 0; }
.opt { font-weight: 400; color: var(--muted); }
.control { position: relative; display: flex; align-items: center; }
.control > .ic { position: absolute; left: 16px; color: #8D8A9E; pointer-events: none; transition: color .2s; }
.control input, .control select {
  width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--field); color: var(--gelo); font-size: 15.5px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.control input::placeholder { color: #67647A; }
.control input:hover, .control select:hover { border-color: rgba(255,255,255,.18); }
.control input:focus, .control select:focus { border-color: var(--lavanda); background: #1A1726; box-shadow: 0 0 0 4px rgba(112,71,235,.22); }
.control:focus-within > .ic { color: var(--lavanda); }
.control input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--field) inset; -webkit-text-fill-color: var(--gelo); caret-color: #fff; }
.control select { padding-right: 44px; cursor: pointer; }
.control select:invalid { color: #67647A; }
.control select option { background: var(--n800); color: var(--gelo); }
.control .chev { position: absolute; right: 16px; left: auto; color: #8D8A9E; pointer-events: none; }
.control.has-toggle input { padding-right: 52px; }
.pass-toggle { position: absolute; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: #8D8A9E; cursor: pointer; transition: color .2s, background .2s; }
.pass-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.pass-toggle .eye-off { display: none; }
.pass-toggle[aria-pressed="true"] .eye-on { display: none; }
.pass-toggle[aria-pressed="true"] .eye-off { display: block; }

.field.invalid .control input, .field.invalid .control select { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255,77,106,.14); }
.field.invalid .control > .ic { color: var(--err); }
.field-msg { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: #FF7088; }
.field-msg:empty { display: none; }
.field-msg.info { color: var(--warn); }
.field-msg .ic { width: 14px; height: 14px; }

.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

.check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: #C9C6D6; cursor: pointer; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check .box { flex: none; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.28); transition: background .2s, border-color .2s; }
.check .box .ic { width: 13px; height: 13px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .3s var(--ease); }
.check input:checked + .box { background: var(--pulso); border-color: var(--pulso); }
.check input:checked + .box .ic { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--lavanda); outline-offset: 2px; }
.check a { color: var(--lavanda); text-underline-offset: 3px; }
.check.invalid .box { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255,77,106,.18); }

/* ---------- botões ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 15.5px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s, opacity .25s; }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--pulso); color: #fff; box-shadow: 0 12px 32px -12px rgba(112,71,235,.85), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: var(--pulso-400); }
.btn-outline { color: var(--gelo); background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.2); }
.btn-outline:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.38); }
.btn-ghost { color: var(--muted); background: none; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.05); }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.loading { pointer-events: none; }
.btn.loading .spinner { display: block; }
.btn.loading .btn-ic { display: none; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { padding: 0; border: 0; background: none; color: var(--lavanda); font-size: 13px; cursor: pointer; text-underline-offset: 3px; }
.link-btn:hover { text-decoration: underline; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; transition: color .2s, gap .3s var(--ease); }
.back-btn:hover { color: #fff; gap: 11px; }

.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.form-status { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status.ok { background: rgba(46,212,122,.1); color: var(--ok); }
.form-status.err { background: rgba(255,77,106,.1); color: #FF7088; }
.form-status .ic { margin-top: 1px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 12.5px; color: #6E6B80; }

/* ---------- força da senha ---------- */
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.strength i { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .35s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--err); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--lavanda); }
.strength[data-score="4"] i { background: var(--ok); }
.strength-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.rules { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.rules li { display: inline-flex; align-items: center; gap: 5px; transition: color .25s; }
.rules .ic { width: 12px; height: 12px; stroke-width: 2.6; color: #55526A; transition: color .25s; }
.rules li.ok { color: #C9C6D6; }
.rules li.ok .ic { color: var(--ok); }
.strength-label { flex: none; font-size: 12px; color: var(--muted); }
.strength-label b { font-weight: 500; }

/* ---------- etapas ---------- */
.stepper { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 34px; padding-bottom: 14px; }
.st { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); transition: color .3s; }
.st-n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); font-size: 12.5px; font-weight: 600; transition: background .35s, border-color .35s, color .35s, box-shadow .35s; }
.st-n .ic { width: 13px; height: 13px; stroke-width: 3; display: none; }
.st.current { color: #fff; }
.st.current .st-n { background: var(--pulso); border-color: var(--pulso); box-shadow: 0 0 0 5px rgba(112,71,235,.2); }
.st.done { color: #C9C6D6; }
.st.done .st-n { background: rgba(46,212,122,.15); border-color: rgba(46,212,122,.55); color: var(--ok); }
.st.done .st-n span { display: none; }
.st.done .st-n .ic { display: block; }
.st-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); }
.st-bar i { display: block; width: calc(var(--p, 1) / 3 * 100%); height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--pulso), var(--lavanda)); transition: width .7s var(--ease); }

.step { min-width: 0; border: 0; display: none; }
.step.is-active { display: grid; gap: 18px; animation: step-in .55s var(--ease); }
.step.is-active.from-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-26px); } }
.step .auth-title { margin-top: 0; }
.step .auth-sub { margin: -8px 0 6px; }
.step-actions { display: flex; gap: 10px; margin-top: 6px; }
.step-actions .btn-primary { flex: 1; }

/* tamanho da equipe */
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--field); font-size: 13.5px; color: #C9C6D6; cursor: pointer; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.chip span:hover { border-color: rgba(255,255,255,.22); }
.chip input:checked + span { border-color: var(--lavanda); background: rgba(112,71,235,.2); color: #fff; box-shadow: 0 0 0 3px rgba(112,71,235,.18); }
.chip input:focus-visible + span { outline: 2px solid var(--lavanda); outline-offset: 2px; }
.field.invalid .chip span { border-color: rgba(255,77,106,.6); }

/* cobrança mensal/anual */
.billing { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); isolation: isolate; }
.billing button { position: relative; z-index: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 14px; color: rgba(245,243,249,.7); cursor: pointer; transition: color .3s; }
.billing button.on { color: #fff; }
.billing em { padding: 2px 7px; border-radius: 999px; background: rgba(46,212,122,.2); font-size: 10.5px; font-style: normal; font-weight: 600; white-space: nowrap; color: var(--ok); }
.billing-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--pulso); transition: transform .5s var(--ease); }
.billing[data-bill="a"] .billing-thumb { transform: translateX(100%); }

/* opções de plano */
.plan-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-opt { position: relative; display: block; cursor: pointer; }
.plan-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.po-card { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); transition: border-color .25s, background .25s, box-shadow .25s, transform .35s var(--ease); }
.plan-opt:hover .po-card { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.plan-opt input:checked + .po-card { border-color: var(--lavanda); background: linear-gradient(160deg, rgba(112,71,235,.24), rgba(112,71,235,.06)); box-shadow: 0 0 0 3px rgba(112,71,235,.2); }
.plan-opt input:focus-visible + .po-card { outline: 2px solid var(--lavanda); outline-offset: 2px; }
.po-head { display: flex; align-items: center; gap: 8px; }
.po-head b { font-size: 16px; font-weight: 600; }
.po-tag { padding: 2px 7px; border-radius: 999px; background: var(--pulso); font-family: var(--mono); font-size: 9.5px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.po-radio { position: relative; width: 18px; height: 18px; margin-left: auto; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); transition: border-color .2s; }
.po-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--lavanda); transform: scale(0); transition: transform .3s var(--ease); }
.plan-opt input:checked + .po-card .po-radio { border-color: var(--lavanda); }
.plan-opt input:checked + .po-card .po-radio::after { transform: scale(1); }
.po-price { display: flex; align-items: baseline; gap: 4px; }
.po-price small { font-size: 12px; color: var(--muted); }
.po-price strong { font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.po-price span { font-size: 12px; color: var(--muted); }
.po-price.custom strong { font-size: 19px; }
.po-feats { font-size: 12px; line-height: 1.45; color: var(--muted); }
.plan-hint { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(112,71,235,.12); border: 1px solid rgba(167,139,250,.25); font-size: 13px; line-height: 1.45; color: #DCD3FF; }
.plan-hint .spk { margin-top: 3px; fill: var(--lavanda); }

/* conclusão */
.done-ic { position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 22px; background: linear-gradient(135deg, var(--pulso), var(--lavanda) 70%, var(--nevoa)); box-shadow: 0 20px 50px -14px rgba(112,71,235,.9); animation: pop .7s var(--ease) both; }
.done-ic .ic { width: 34px; height: 34px; stroke-width: 2.6; color: #fff; }
.done-ic .ic path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s var(--ease) .35s forwards; }
.done-ic .burst { position: absolute; width: 14px; height: 14px; fill: var(--nevoa); opacity: 0; animation: burst 1s var(--ease) .4s forwards; }
.done-ic .burst.b1 { --tx: -48px; --ty: -30px; } .done-ic .burst.b2 { --tx: 50px; --ty: -36px; width: 10px; height: 10px; } .done-ic .burst.b3 { --tx: 44px; --ty: 40px; width: 12px; height: 12px; } .done-ic .burst.b4 { --tx: -46px; --ty: 34px; width: 9px; height: 9px; }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { opacity: 0; transform: translate(0, 0) scale(.2); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(1) rotate(90deg); } }
.next-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 26px; }
.next-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); font-size: 14px; color: #C9C6D6; }
.next-list li b { color: #fff; font-weight: 500; }
.next-list .n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 600; border: 1.5px solid rgba(255,255,255,.2); }
.next-list li.ok .n { background: rgba(46,212,122,.15); border-color: rgba(46,212,122,.55); color: var(--ok); }
.next-list li.now { border-color: rgba(167,139,250,.5); background: rgba(112,71,235,.14); }
.next-list li.now .n { background: var(--pulso); border-color: var(--pulso); color: #fff; }
.done-actions { display: grid; gap: 10px; }

/* =========================================================
   PAINEL VISUAL (lado direito)
   ========================================================= */
.auth-visual { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 14px 14px 14px 0; }
.av { position: relative; isolation: isolate; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; overflow: hidden; background: #110D1E; border: 1px solid rgba(255,255,255,.06); }
.av-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; }
.g1 { width: 780px; height: 780px; right: -30%; top: -34%; background: radial-gradient(circle, rgba(155,0,255,.55), transparent 62%); animation: drift1 18s ease-in-out infinite alternate; }
.g2 { width: 680px; height: 680px; left: -32%; bottom: -38%; background: radial-gradient(circle, rgba(112,71,235,.65), transparent 62%); animation: drift2 22s ease-in-out infinite alternate; }
.g3 { width: 320px; height: 320px; right: 6%; bottom: -12%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 65%); animation: drift1 16s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(70px, -40px, 0) scale(.92); } }
.av-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 45%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 60% at 55% 45%, #000 20%, transparent 78%); }
.eco { position: absolute; left: 50%; top: 46%; width: 120%; translate: -50% -50%; overflow: visible; }
.eco path { fill: none; stroke: rgba(167,139,250,.45); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: eco 10s linear infinite; opacity: 0; }
@keyframes eco { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
.twinkle { position: absolute; width: 12px; height: 12px; fill: var(--nevoa); animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .12; transform: scale(.55) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); font-size: 13.5px; }
.pill-spark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--pulso); box-shadow: 0 0 18px rgba(112,71,235,.8); }
.pill-spark svg { width: 12px; height: 12px; fill: #fff; }

.av-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; }
.av-bottom h2 { font-family: var(--display); font-size: clamp(28px, 2.7vw, 40px); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; }
.av-bottom p { max-width: 32em; margin-top: 12px; font-size: 15.5px; color: rgba(231,222,255,.75); }
.av-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.av-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); font-size: 12.5px; color: var(--nevoa); }
.av-chips .ic, .av-chips .spk { color: var(--lavanda); fill: var(--lavanda); }

/* canto chanfrado 45° (elemento da marca) */
.cham {
  --ch: 16px; --bd: rgba(167,139,250,.5); --bg: rgba(255,255,255,.05);
  position: relative;
  background:
    linear-gradient(45deg, transparent calc(50% - 1.1px), var(--bd) calc(50% - 1.1px), var(--bd) calc(50% - .1px), transparent calc(50% - .1px)) top right / var(--ch) var(--ch) no-repeat,
    var(--bg);
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
}
.cham::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--bd); pointer-events: none; }

/* conversa animada (login) */
.chat { position: relative; width: min(430px, 100%); display: flex; flex-direction: column; gap: 12px; }
.c-row { display: flex; flex-direction: column; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.c-row.on { opacity: 1; transform: none; }
.chat.fade .c-row { opacity: 0; transition-duration: .45s; }
.msg { max-width: 86%; padding: 11px 14px 22px; font-size: 14.5px; line-height: 1.42; }
.msg small { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.msg-in { align-self: flex-start; background: var(--grafite); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 32px calc(100% - 10px), 14px 100%, 0 100%); }
.msg-out { align-self: flex-end; background: var(--pulso); clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 14px) 100%, calc(100% - 32px) calc(100% - 10px), 0 calc(100% - 10px)); }
.ai-card { --ch: 16px; --bd: rgba(167,139,250,.6); --bg: linear-gradient(135deg, rgba(112,71,235,.45), rgba(112,71,235,.14) 60%, rgba(255,255,255,.04)); padding: 13px 14px 14px; backdrop-filter: blur(10px); }
.ai-label { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(231,222,255,.9); }
.ai-label i { font-style: normal; opacity: .5; }
.ai-label .spk { fill: #fff; }
.ai-card p { margin-top: 7px; font-size: 13.5px; line-height: 1.45; }
.ai-actions { display: flex; gap: 6px; margin-top: 11px; }
.mini-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: 11.5px; font-weight: 500; }
.mini-btn.primary { background: var(--pulso); border-color: var(--pulso); }
.toast { align-self: center; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 14px; background: rgba(245,243,249,.97); color: var(--noite); box-shadow: 0 24px 48px -16px rgba(0,0,0,.6); }
.toast b { display: block; font-size: 13.5px; font-weight: 500; }
.toast span { font-size: 11.5px; color: #686579; }
.t-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(46,212,122,.16); color: #17A257; }
.t-ic .ic { stroke-width: 2.4; }
.float-stat { position: absolute; right: 0; top: 4%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; width: 196px; padding: 13px 15px; border-radius: 16px; background: rgba(22,20,31,.78); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); animation: float 7s ease-in-out infinite; }
.float-stat > .ic { color: var(--lavanda); }
.float-stat b { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.float-stat span { font-size: 11.5px; color: var(--muted); }
.float-stat div { display: flex; align-items: baseline; gap: 6px; }
.mini-bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.mini-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; background: linear-gradient(to top, rgba(112,71,235,.45), rgba(167,139,250,.95)); }
@keyframes float { 50% { translate: 0 -10px; } }

/* jornada + resumo (cadastro) */
.av-stack { width: min(440px, 100%); display: grid; gap: 14px; }
.journey { --ch: 22px; --bd: rgba(255,255,255,.14); --bg: rgba(18,15,30,.62); padding: 22px 22px 8px; backdrop-filter: blur(14px); }
.journey .mono { display: block; margin-bottom: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.j-step { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding-bottom: 16px; }
.j-step:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.1); }
.j-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--ok); transform-origin: top; transform: scaleY(0); transition: transform .6s var(--ease); }
.j-step.done::after { transform: scaleY(1); }
.j-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); font-size: 12px; font-weight: 600; color: var(--muted); transition: background .35s, border-color .35s, color .35s, box-shadow .35s; }
.j-dot .ic { display: none; width: 13px; height: 13px; stroke-width: 3; }
.j-step b { display: block; font-size: 14px; font-weight: 500; color: #C9C6D6; transition: color .3s; }
.j-step small { display: block; font-size: 12.5px; color: var(--muted); }
.j-step.current .j-dot { background: var(--pulso); border-color: var(--pulso); color: #fff; box-shadow: 0 0 0 5px rgba(112,71,235,.25); }
.j-step.current b { color: #fff; }
.j-step.done .j-dot { background: rgba(46,212,122,.15); border-color: rgba(46,212,122,.55); color: var(--ok); }
.j-step.done .j-dot span { display: none; }
.j-step.done .j-dot .ic { display: block; }
.summary { --ch: 22px; --bd: rgba(167,139,250,.55); --bg: linear-gradient(160deg, rgba(112,71,235,.4), rgba(26,20,48,.85) 70%); padding: 20px 22px 22px; backdrop-filter: blur(14px); }
.sum-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sum-top .mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(231,222,255,.8); }
.sum-name { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.sum-price { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.sum-price small { font-size: 14px; color: rgba(231,222,255,.7); }
.sum-price b { font-family: var(--display); font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sum-price span { font-size: 13.5px; color: rgba(231,222,255,.7); }
.sum-note { margin-top: 4px; font-size: 12.5px; color: var(--ok); }
.sum-feats { list-style: none; display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.sum-feats li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sum-feats .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; stroke-width: 2.6; background: rgba(46,212,122,.15); color: var(--ok); }
.sum-extra { margin-top: 14px; font-size: 12.5px; color: rgba(231,222,255,.7); }
.sum-extra b { color: #fff; font-weight: 500; }
.summary.swap .sum-body { animation: sum-swap .45s var(--ease); }
@keyframes sum-swap { from { opacity: 0; transform: translateY(8px); } }

/* =========================================================
   TEMA CLARO (login) — base Gelo/Névoa do design system;
   o painel visual continua escuro para manter o contraste da marca
   ========================================================= */
.auth.theme-light { background: var(--gelo); }
.theme-light .auth-side { color: var(--noite); --muted: #5E5B70; --line: rgba(12,10,20,.12); --field: #fff; }
.theme-light .auth-side::before { background-image: linear-gradient(rgba(12,10,20,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(12,10,20,.045) 1px, transparent 1px); }
.theme-light .auth-side::after { background: radial-gradient(circle, rgba(112,71,235,.16), transparent 62%); }
.theme-light .logo, .theme-light .top-link b { color: var(--noite); }
.theme-light .top-link:hover b { color: var(--pulso); }
.theme-light .eyebrow, .theme-light .link-btn { color: var(--pulso); }
.theme-light .field > label, .theme-light .label-row label { color: #32313D; }
.theme-light .control > .ic { color: #8D8A9E; }
.theme-light .control:focus-within > .ic { color: var(--pulso); }
.theme-light .control input { background: #fff; color: var(--noite); border-color: rgba(12,10,20,.14); box-shadow: 0 1px 2px rgba(12,10,20,.04); }
.theme-light .control input::placeholder { color: #9C99AE; }
.theme-light .control input:hover { border-color: rgba(12,10,20,.26); }
.theme-light .control input:focus { background: #fff; border-color: var(--pulso); box-shadow: 0 0 0 4px rgba(112,71,235,.16); }
.theme-light .control input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #fff inset; -webkit-text-fill-color: var(--noite); caret-color: var(--noite); }
.theme-light .pass-toggle:hover { color: var(--noite); background: rgba(12,10,20,.05); }
.theme-light .field.invalid .control input { border-color: #E23B58; box-shadow: 0 0 0 4px rgba(255,77,106,.14); }
.theme-light .field-msg { color: #D3304F; }
.theme-light .field-msg.info { color: #A86A05; }
.theme-light .check { color: #4A4858; }
.theme-light .check .box { border-color: rgba(12,10,20,.28); background: #fff; }
.theme-light .check input:checked + .box { background: var(--pulso); border-color: var(--pulso); }
.theme-light .btn-outline { color: var(--noite); background: #fff; border-color: rgba(12,10,20,.16); }
.theme-light .btn-outline:hover { background: #F0EDF7; border-color: rgba(12,10,20,.3); }
.theme-light .back-btn:hover { color: var(--noite); }
.theme-light .divider { color: #8D8A9E; }
.theme-light .secure-note, .theme-light .auth-foot { color: #8D8A9E; }
.theme-light .auth-foot a:hover { color: var(--noite); }
.theme-light .form-status.ok { background: rgba(46,212,122,.12); color: #12884A; }
.theme-light .form-status.err { background: rgba(255,77,106,.1); color: #D3304F; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
.av-bottom .av-chips:first-child { margin-top: 0; }
@media (max-height: 880px) {
  .j-step small { display: none; }
  .j-step { padding-bottom: 12px; }
  .j-step:not(:last-child)::before, .j-step:not(:last-child)::after { top: 30px; }
  .sum-feats { gap: 6px; margin-top: 12px; padding-top: 12px; }
  .av-bottom h2 { font-size: 28px; }
  .float-stat { display: none; }
}
@media (max-height: 760px) {
  .av-bottom p { display: none; }
  .chat .ai-actions { display: none; }
}
@media (max-width: 1100px) {
  .float-stat { display: none; }
}
@media (max-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-visual { display: none; }
}
@media (max-width: 560px) {
  .auth-side { padding: 20px 16px; }
  .auth-center { align-items: flex-start; padding: 32px 0; }
  .top-link span { display: none; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-opts { grid-template-columns: minmax(0, 1fr); }
  .st-l { display: none; }
  .st.current .st-l { display: inline; }
  .billing em { font-size: 10px; padding: 2px 6px; }
}

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