/* Norte · página de entrada. Cores, raios e tamanhos vêm de tokens.css (a mesma fonte do app). */
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root { --display: "Figtree", var(--font); --campo: 48px; --r-c: 8px; --linha: color-mix(in srgb, var(--line) 85%, transparent); }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: var(--display); background: var(--card); color: var(--ink); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; padding: var(--s3); gap: var(--s3); }

/* ---------- esquerda: formulário ---------- */
.side { display: flex; flex-direction: column; padding: var(--s4) clamp(16px, 4vw, 56px) 18px; min-height: calc(100vh - 24px); }
.marca { display: flex; align-items: center; gap: 10px; font-weight: var(--w-forte); font-size: 20px; letter-spacing: -.03em; }
.marca svg { width: 36px; height: 36px; }
.logo-tile { fill: var(--accent); } .logo-n { fill: var(--on-accent); } .logo-traco { stroke: var(--on-accent); fill: none; } .logo-n2 { fill: var(--soft); }
.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--s5) 0; }
.box { width: 100%; max-width: 380px; animation: sobe .5s var(--ease) both; }
@keyframes sobe { from { opacity: 0; transform: translateY(10px); } }
h1 { font-weight: var(--w-forte); font-size: 30px; line-height: 1.12; letter-spacing: -.035em; }
.lead { margin-top: 6px; color: var(--muted); font-size: 15.5px; letter-spacing: -.01em; }
.steps { position: relative; margin-top: 28px; }
.step { display: none; gap: 14px; }
.step.on { display: grid; animation: in .35s var(--ease); }
.step.back { animation-name: inback; }
@keyframes in { from { opacity: 0; transform: translateX(18px); } }
@keyframes inback { from { opacity: 0; transform: translateX(-18px); } }
label { display: block; font-size: 14px; font-weight: var(--w-medio); color: var(--ink2); margin-bottom: var(--s2); letter-spacing: -.01em; }
.field { position: relative; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; height: var(--campo); padding: 0 18px; font: inherit; font-size: 16px; letter-spacing: -.01em; color: var(--ink);
  background: var(--card); border: 0; box-shadow: inset 0 0 0 1px var(--linha); border-radius: var(--r-c); outline: none; transition: box-shadow .15s;
}
input::placeholder { color: var(--muted); opacity: .7; }
input:hover { box-shadow: inset 0 0 0 1px var(--dash); }
input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--bad), 0 0 0 4px color-mix(in srgb, var(--bad) 14%, transparent); }
.field.pw input { padding-right: 88px; }
.toggle { position: absolute; right: var(--s2); top: 50%; transform: translateY(-50%); height: 36px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: var(--w-medio); border-radius: var(--r-sm); cursor: pointer; }
.toggle:hover { color: var(--ink); background: var(--fill-hover); }
.who { display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: inset 0 0 0 1px var(--linha); border-radius: var(--r-c); padding: 6px 6px 6px 8px; }
.who span { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: var(--w-medio); font-size: 15px; letter-spacing: -.01em; }
.who i { flex: none; width: 32px; height: 32px; border-radius: 7px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-style: normal; font-weight: var(--w-forte); font-size: 14px; text-transform: uppercase; }
.who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--w-medio); }
.who button { flex: none; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: var(--w-forte); padding: var(--s2) 14px; border-radius: var(--r-sm); cursor: pointer; }
.who button:hover { background: var(--accent-soft); }
.row { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: 14px; }
.check { display: flex; align-items: center; gap: var(--s2); color: var(--ink2); cursor: pointer; margin: 0; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
a { color: var(--accent); font-weight: var(--w-medio); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn { height: var(--campo); border: 0; border-radius: var(--r-c); background: var(--accent); color: var(--on-accent); font: inherit; font-size: 16px; font-weight: var(--w-forte); letter-spacing: -.01em; cursor: pointer; transition: transform .1s, background .15s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .65; cursor: progress; }
.msg { font-size: 14px; font-weight: 500; line-height: 1.45; }
.msg:empty { display: none; }
.msg.err { color: var(--bad); }
.msg.info { color: var(--muted); background: var(--field); border-radius: var(--r-c); padding: 10px var(--s3); }
.legal { font-size: 13px; color: var(--muted); line-height: 1.55; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- direita: vitrine (acompanha a cor do sistema) ---------- */
.stage {
  position: relative; overflow: hidden; border-radius: 14px; color: var(--tip-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px;
  background: radial-gradient(70% 55% at 50% 30%, var(--stage-a), transparent 70%), linear-gradient(170deg, var(--stage-b), var(--stage-c));
}
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 34%, #000, transparent); mask-image: radial-gradient(70% 55% at 50% 34%, #000, transparent); }
.visual { position: relative; width: 100%; max-width: 620px; height: 360px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.glass { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); border-radius: 8px; }
.orbit { position: absolute; left: 50%; top: 50px; width: 500px; height: 500px; margin-left: -250px; animation: spin 120s linear infinite; }
.slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-250px); }
.chip { position: absolute; left: -36px; top: -22px; width: 72px; height: 44px; display: grid; place-items: center; font-weight: var(--w-forte); font-size: 14px; letter-spacing: -.02em; animation: unspin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
.hub { position: absolute; width: 124px; left: calc(50% - 62px); top: 150px; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); animation: bob 6s ease-in-out infinite; }
.hub .peso-b { fill: var(--stage-hi); }
@keyframes bob { 50% { translate: 0 -8px; } }
.ring { position: absolute; left: 50%; top: 212px; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--stage-hi) 35%, transparent); animation: pulse 3.2s ease-out infinite; }
.ring.r2 { animation-delay: -1.6s; }
@keyframes pulse { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.say { position: relative; margin-top: 20px; text-align: center; max-width: 420px; }
.say h2 { font-weight: var(--w-forte); font-size: 28px; line-height: 1.1; letter-spacing: -.045em; }
.say h2 u { text-decoration: none; color: var(--stage-hi); }
.say p { margin-top: var(--s3); color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.5; letter-spacing: -.01em; }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; padding: 0; }
  .stage { display: none; }
  .side { min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) { .orbit, .chip, .hub, .ring, .step.on, .shake { animation: none !important; } }
[hidden] { display: none !important; }
/* passo do código (verificação em duas etapas) */
input.codigo { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.dica { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.link-voltar { justify-self: center; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 10px; }
.link-voltar:hover { color: var(--ink); }
