/* Liquiduz · cadastro e entrar — painel da marca (escuro, violeta) + formulário claro */
:root {
  --violet: #7B2FFF; --violet-2: #9A5CFF; --violet-d: #5A1FD1; --violet-l: #A878FF; --violet-z: #8F4DFF;
  --lav: #F5F0FF; --lav-2: #FAF8FF; --ink: #0C0818; --ink-2: #2E2448; --text-2: #4D436B;
  --muted: #6F668B; --muted-2: #847C9E; --line: rgba(7, 5, 15, .08); --line-2: rgba(7, 5, 15, .14);
  --ok: #19C37D; --bad: #FF5C7A; --black: #07050F;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --logo: "Sora", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
/* celular e tablet: campos com 16px evitam o zoom automático do iPhone ao tocar para digitar */
@media (hover: none), (max-width: 900px) { input, select, textarea { font-size: 16px; } }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
/* the step title takes focus for screen readers only: no visible ring */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; }

/* ---------- brand side ---------- */
.brand-side { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding: 34px 48px 30px; color: #fff;
  background: radial-gradient(70% 55% at 25% 30%, rgba(123, 47, 255, .42), transparent 70%), radial-gradient(60% 45% at 95% 105%, rgba(123, 47, 255, .3), transparent 70%), var(--black); }
.brand-side::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  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: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 55% at 35% 40%, #000 10%, transparent 75%); mask-image: radial-gradient(60% 55% at 35% 40%, #000 10%, transparent 75%); }
.brand-side .streaks { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; pointer-events: none; }
.brand-logo { position: relative; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-family: var(--logo); font-size: 22px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; color: #fff; }
.brand-logo img { width: 40px; height: 20px; }
.brand-mid { position: relative; margin: auto 0; padding: 40px 0; max-width: 520px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; color: #E3DCF5; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.brand-mid h2 { margin: 22px 0 0; font-size: clamp(34px, 3.4vw, 50px); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.brand-mid h2 span { background: linear-gradient(180deg, #B48CFF 0%, #8F4DFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mid p { margin: 18px 0 0; max-width: 440px; font-size: 16px; line-height: 1.6; color: #A69EB9; }
.coins { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.coin { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #C9C2DB; }
.coin .flag { width: 40px; height: 40px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 8px 18px rgba(0, 0, 0, .35); }
.d0 { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.d0 b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.d0 small { font-size: 13px; color: #A69EB9; line-height: 1.35; }
.brand-foot { position: relative; font-size: 12.5px; color: #6F6788; }

.flag { display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; }
.flag svg { display: block; width: 100%; height: 100%; stroke: none; }

/* ---------- form side ---------- */
.form-side { display: flex; flex-direction: column; min-width: 0; padding: 26px 48px 24px; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-top .brand-logo { color: var(--ink); visibility: hidden; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--violet-d); }
.back svg { width: 16px; height: 16px; }
.form-wrap { width: 100%; max-width: 460px; margin: auto; padding: 32px 0; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; color: var(--muted-2); }

.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
h1 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.lead { margin: 10px 0 0; color: var(--muted); }
.step-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--muted); }
.step-back:hover { color: var(--violet-d); }
.step-back svg { width: 16px; height: 16px; }

/* progress: steps 1..5 */
.progress { margin: 0 0 26px; }
.progress__bar { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 6px; }
.progress__bar i { height: 5px; border-radius: 999px; background: #EDE8F7; transition: background .3s; }
.progress__bar i.on { background: linear-gradient(90deg, var(--violet-2), var(--violet)); }
.progress__txt { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--muted-2); }
.progress__txt b { color: var(--ink-2); font-weight: 600; }

/* fields */
.form { display: grid; gap: 16px; margin-top: 26px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.fld > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fld > span small { font-weight: 400; color: var(--muted-2); }
.inp { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 13px; background: var(--lav-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s; }
.inp:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(123, 47, 255, .1); }
.inp > svg { flex: none; width: 18px; height: 18px; color: var(--muted-2); }
.inp input, .inp select { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; }
.inp select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.inp input::placeholder { color: #A79FBC; }
.inp .eye { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border-radius: 9px; color: var(--muted-2); }
.inp .eye:hover { background: var(--lav); color: var(--ink-2); }
.inp .eye svg { width: 18px; height: 18px; }
/* lista de escolha própria (segmento, faturamento, país...) */
.inp.sel { position: relative; cursor: pointer; }
.inp.sel > svg:last-of-type { pointer-events: none; transition: transform .2s; }
.inp.sel.is-open > svg:last-of-type { transform: rotate(180deg); }
.sel-btn { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; outline: 0; }
.sel-btn.is-ph { color: #A79FBC; }
.inp.sel:has(.sel-btn:focus-visible) { background: #fff; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(123, 47, 255, .1); }
.inp.sel.is-open { background: #fff; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(123, 47, 255, .1); }
.sel-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: 300px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(12, 8, 24, .28); }
.sel-list li { padding: 11px 14px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.sel-list li.is-at { background: var(--lav); color: var(--ink); }
.sel-list li[aria-selected="true"] { font-weight: 600; color: #5A1FD1; }
.sel-list li[aria-selected="true"]::after { content: "✓"; float: right; margin-left: 12px; }
.fld.bad .inp { box-shadow: inset 0 0 0 2px var(--bad); background: #fff; }
.err { margin: 0; font-size: 12.5px; font-weight: 500; color: #D43456; }
.hint { margin: 0; font-size: 12.5px; color: var(--muted-2); }

/* password strength */
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.meter i { height: 4px; border-radius: 999px; background: #EDE8F7; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #F0A53A; }
.meter[data-s="3"] i:nth-child(-n+3) { background: var(--violet-l); }
.meter[data-s="4"] i { background: var(--ok); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted-2); }
.rules li { display: flex; align-items: center; gap: 6px; }
.rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #CFC8DF; }
.rules li.ok { color: #0E9F63; }
.rules li.ok::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: none; }

/* choice cards (nationality, account type) */
.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s; }
.choice:hover { box-shadow: inset 0 0 0 1px rgba(123, 47, 255, .45); }
.choice[aria-pressed="true"] { background: var(--lav); box-shadow: inset 0 0 0 2px var(--violet); }
.choice .flag, .choice .globe { width: 40px; height: 40px; }
.choice .globe { display: grid; place-items: center; border-radius: 50%; background: var(--lav); color: var(--violet); }
.choice .globe svg { width: 22px; height: 22px; }
.choice b { display: block; font-size: 15.5px; font-weight: 600; }
.choice small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-2); }
.choice .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #CFC8DF; flex: none; }
.choice[aria-pressed="true"] .tick { background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.chip[aria-pressed="true"] { background: var(--lav); box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet-d); }

/* checkbox / switch */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); cursor: pointer; }
.check b { font-weight: 600; color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 52px; padding: 0 20px; border-radius: 14px; font-size: 15.5px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, var(--violet-2) 0%, var(--violet) 55%, #6624E6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 0 0 1px rgba(123, 47, 255, .25), 0 12px 28px -10px rgba(123, 47, 255, .75); transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), 0 0 0 1px rgba(123, 47, 255, .35), 0 16px 34px -10px rgba(123, 47, 255, .85); }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn--ghost { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(123, 47, 255, .45); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alt { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.alt a, .linkish { font-weight: 600; color: var(--violet); text-decoration: none; }
.alt a:hover, .linkish:hover { color: var(--violet-d); text-decoration: underline; }
.demo { margin: 18px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--lav-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }

/* 6-digit code */
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.code input { width: 100%; height: 58px; border: 0; border-radius: 13px; background: var(--lav-2); box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; font-size: 24px; font-weight: 600; outline: 0; }
.code input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(123, 47, 255, .1); }
.code.bad input { box-shadow: inset 0 0 0 2px var(--bad); }

/* uploads */
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--lav-2); box-shadow: inset 0 0 0 1.5px #DCD3F2; cursor: pointer; transition: box-shadow .2s, background .2s; }
.drop:hover, .drop.over { background: var(--lav); box-shadow: inset 0 0 0 1.5px var(--violet); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--violet); box-shadow: inset 0 0 0 1px rgba(123, 47, 255, .2); }
.drop .ico svg { width: 20px; height: 20px; }
.drop b { display: block; font-size: 14px; font-weight: 600; }
.drop small { display: block; font-size: 12.5px; color: var(--muted-2); }
.drop.done { background: #F1FBF6; box-shadow: inset 0 0 0 1.5px rgba(25, 195, 125, .55); }
.drop.done .ico { color: #0E9F63; box-shadow: inset 0 0 0 1px rgba(25, 195, 125, .35); }
.drop.bad { box-shadow: inset 0 0 0 1.5px var(--bad); }

/* final screen */
.done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--lav); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(123, 47, 255, .2); margin-bottom: 22px; }
.done-ico svg { width: 30px; height: 30px; }
.next { list-style: none; margin: 24px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--lav); display: grid; gap: 16px; }
.next li { position: relative; padding-left: 14px; font-size: 14px; color: var(--muted); }
.next li::before { content: ""; position: absolute; left: -25px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #D9CFF2; }
.next li.on::before { box-shadow: inset 0 0 0 3px var(--violet); }
.next li b { display: block; color: var(--ink); font-weight: 600; }
.btns { display: grid; gap: 10px; margin-top: 26px; }
.sent { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: #F1FBF6; color: #0E9F63; font-size: 13.5px; font-weight: 600; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .brand-side { display: none; }
  .form-top .brand-logo { visibility: visible; }
  .form-side { padding: 20px 20px 22px; }
  .back { margin-left: 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 27px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .code { gap: 7px; }
  .code input { height: 52px; font-size: 21px; }
  .rules { grid-template-columns: 1fr; }
  .back span { display: none; }
}
