/* AVERE · tela de login
   Folha de estilo da página de acesso (login, criar conta, recuperar senha).
   Fundo: Particles, adaptado do React Bits (MIT + Commons Clause) — https://github.com/DavidHDev/react-bits */
/* Layout: fundo de seda azul em WebGL; o X se monta no campo esquerdo; cartão de vidro à direita com os fluxos de acesso; nav no topo, aviso legal na base. */
:root {
  --bg: #03060d;
  --ink: #eef4ff;
  --ink-2: rgba(226, 236, 255, 0.74);
  --ink-3: rgba(206, 222, 255, 0.5);
  --ink-4: rgba(206, 222, 255, 0.32);
  --line: rgba(160, 190, 255, 0.12);
  --line-2: rgba(170, 200, 255, 0.2);
  --line-3: rgba(180, 210, 255, 0.34);
  --glass: rgba(9, 16, 32, 0.58);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --field: rgba(255, 255, 255, 0.035);
  --field-hover: rgba(255, 255, 255, 0.055);
  --field-focus: rgba(61, 139, 255, 0.07);
  --brand: #3d8bff;
  --brand-hi: #5aa2ff;
  --brand-lo: #2366e8;
  --brand-cyan: #74d4ff;
  --brand-soft: rgba(61, 139, 255, 0.14);
  --ring: rgba(61, 139, 255, 0.3);
  --guide: rgba(120, 196, 255, 0.32);
  --danger: #ff8585;
  --danger-ring: rgba(255, 110, 110, 0.2);
  --warn: #ffc46b;
  --ok: #5ad8a6;

  --font-ui: "Geist", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.4vw, 88px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --card-w: 448px;
  --r-card: 28px;
  --r-field: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.64, 0, 0.78, 0);
  --loop: 8.4s;
  --t0: -1s;
  color-scheme: dark;
}

html { height: 100%; box-sizing: border-box; background: var(--bg); overflow: hidden; }
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: inherit; }
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ───────── Shell ───────── */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
}

/* ───────── Fundo ───────── */
.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(70% 45% at 40% 52%, rgba(35, 102, 232, 0.16), transparent 70%),
    linear-gradient(180deg, #050912 0%, #03050b 100%);
}
.bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bg.is-live canvas { opacity: 1; }
.bg__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent 0%, transparent 52%, rgba(3, 6, 13, 0.35) 78%, rgba(3, 6, 13, 0.55) 100%),
    linear-gradient(to bottom, rgba(3, 6, 13, 0.5) 0%, transparent 18%, transparent 80%, rgba(3, 6, 13, 0.7) 100%);
  pointer-events: none;
}

/* ───────── Palco do logo ───────── */
.stage {
  container-type: size;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pad-l);
  right: calc(var(--card-w) + var(--gutter) * 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vh, 30px);
  pointer-events: none;
}
/* ───────── X AVERE horizontal (centro) ─────────
   O X se monta; depois as letras saem de dentro dele, uma atrás da outra. Ciclo de 9 s em JS (Web Animations).
   Sem JS ou com movimento reduzido: logo completo e parado. */
.lockup {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  --H: min(19cqw, 58cqh, 150px);   /* escala das faixas do fundo */
}
.mark {
  --M: min(20cqw, 55cqh, 150px);   /* altura do X; o nome acompanha */
  display: flex;
  align-items: center;
  gap: calc(var(--M) * 0.36);
}
.mark__x {
  position: relative;
  flex: none;
  width: calc(var(--M) * 1.139);
  height: var(--M);
  container-type: inline-size;
}
.mark__x .piece__img,
.mark__x .sweep,
.mark__x .flare,
.mark__x .bloom { animation: none; }
.mark__x .piece__img { opacity: 1; transform: none; filter: none; }
.mark__x .flare { opacity: 0.32; transform: translate(-50%, -50%) scaleX(0.6); }
.mark__x .bloom { opacity: 0.25; transform: translate(-50%, -50%) scale(1.15); }
.mark__word {
  display: flex;
  font-family: var(--font-ui);
  font-size: calc(var(--M) * 0.62);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.34em;
  color: #eef4ff;
  white-space: nowrap;
  margin-right: -0.34em;            /* compensa o espaço depois do último E */
  transform: translateY(0.05em);    /* centro das letras na altura do vértice do X */
  clip-path: inset(-30% -20% -30% 0); /* as letras saem do lado do X */
}
.mk-l { display: inline-block; }

/* faixas de texto vazado correndo atrás */
.kt-wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.kt-row {
  position: absolute;
  left: 0;
  display: flex;
  width: max-content;
  font-family: var(--font-ui);
  font-size: calc(var(--H) * 1.05);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(140, 180, 255, 0.1);
  white-space: nowrap;
  animation: kt-marquee 70s linear infinite;
}
.kt-row span { padding-right: 0.45em; }
.kt-row--a { top: calc(50% - var(--H) * 1.95); }
.kt-row--b { top: calc(50% + var(--H) * 0.95); -webkit-text-stroke-color: rgba(140, 180, 255, 0.07); animation-direction: reverse; animation-duration: 90s; }
@keyframes kt-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo {
  position: relative;
  width: 44px;
  max-width: 100%;
  aspect-ratio: 3376 / 2964;
  container-type: inline-size;
  --mx: 0;
  --my: 0;
}
.guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: guides var(--loop) linear var(--t0) infinite;
}
.guides line, .guides circle {
  fill: none;
  stroke: var(--guide);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  animation: draw var(--loop) linear var(--t0) infinite;
}
.guides .g2 { animation-name: draw2; }
.guides circle { stroke: rgba(160, 215, 255, 0.5); }

.piece { position: absolute; }
.piece__img {
  position: absolute;
  inset: 0;
  background-image: var(--src);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  will-change: transform, opacity, filter;
  animation: var(--anim) var(--loop) linear var(--t0) infinite;
}
.piece--chev {
  left: 0.178%; top: -1.721%; width: 71.475%; height: 101.113%;
  --src: var(--src-chev); --anim: p-chev;
  --depth-x: -10px; --depth-y: -6px;
}
.piece--top {
  left: 56.368%; top: 0.135%; width: 43.069%; height: 45.614%;
  --src: var(--src-top); --anim: p-top;
  --depth-x: 18px; --depth-y: 12px;
}
.piece--bottom {
  left: 56.754%; top: 62.854%; width: 42.180%; height: 36.572%;
  --src: var(--src-bottom); --anim: p-bottom;
  --depth-x: 18px; --depth-y: 16px;
}
.piece--top .piece__img { transform-origin: 10% 75%; }
.piece--bottom .piece__img { transform-origin: 10% 25%; }
.sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, transparent 38%, rgba(170, 222, 255, 0) 42%, rgba(190, 230, 255, 0.55) 50%, rgba(170, 222, 255, 0) 58%, transparent 62%);
  background-size: 320% 100%;
  background-repeat: no-repeat;
  -webkit-mask-image: var(--src-chev);
          mask-image: var(--src-chev);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  mix-blend-mode: screen;
  opacity: 0;
  animation: sweep var(--loop) linear var(--t0) infinite;
}
.flare {
  position: absolute;
  left: 58%;
  top: 53.25%;
  width: 66cqw;
  height: 2px;
  transform: translate(-50%, -50%) scaleX(0);
  background: linear-gradient(90deg, transparent 0%, rgba(150, 210, 255, 0.35) 30%, rgba(225, 243, 255, 0.95) 50%, rgba(150, 210, 255, 0.35) 70%, transparent 100%);
  opacity: 0;
  animation: flare var(--loop) linear var(--t0) infinite;
}
.bloom {
  position: absolute;
  left: 56%;
  top: 53.25%;
  width: 22cqw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.4);
  background: radial-gradient(closest-side, rgba(200, 235, 255, 0.55), rgba(60, 160, 255, 0.18) 45%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: bloom var(--loop) linear var(--t0) infinite;
}

/* ───────── Keyframes da montagem (ciclo de 8,4 s) ───────── */
@keyframes p-chev {
  0%, 3%   { opacity: 0; transform: translate3d(-16cqw, 0, 0) scale(0.97); filter: blur(12px) brightness(0.4); animation-timing-function: var(--ease); }
  20.8%    { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-out; }
  29.2%    { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-out; }
  31%      { opacity: 1; transform: translate3d(0, 0, 0) scale(1.006); filter: blur(0px) brightness(1.4); animation-timing-function: ease-in-out; }
  36%      { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-in-out; }
  55%      { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0px) brightness(1.07); animation-timing-function: ease-in-out; }
  75%      { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0px) brightness(1); animation-timing-function: var(--ease-exit); }
  89.3%, 100% { opacity: 0; transform: translate3d(-7cqw, 0, 0) scale(0.985); filter: blur(10px) brightness(0.4); }
}
@keyframes p-top {
  0%, 8.3% { opacity: 0; transform: translate3d(12cqw, -12cqw, 0) rotate(7deg) scale(0.96); filter: blur(10px) brightness(0.4); animation-timing-function: var(--ease); }
  25.6%    { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-out; }
  29.2%    { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-out; }
  31.5%    { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1.01); filter: blur(0px) brightness(1.55); animation-timing-function: ease-in-out; }
  36.5%    { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-in-out; }
  58%      { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1.08); animation-timing-function: ease-in-out; }
  75%      { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: var(--ease-exit); }
  89.3%, 100% { opacity: 0; transform: translate3d(6cqw, -6cqw, 0) rotate(3deg) scale(0.985); filter: blur(8px) brightness(0.4); }
}
@keyframes p-bottom {
  0%, 11.3% { opacity: 0; transform: translate3d(12cqw, 12cqw, 0) rotate(-7deg) scale(0.96); filter: blur(10px) brightness(0.4); animation-timing-function: var(--ease); }
  28.6%    { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-out; }
  29.6%    { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-out; }
  32%      { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1.01); filter: blur(0px) brightness(1.55); animation-timing-function: ease-in-out; }
  37%      { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: ease-in-out; }
  60%      { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1.08); animation-timing-function: ease-in-out; }
  75%      { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); filter: blur(0px) brightness(1); animation-timing-function: var(--ease-exit); }
  89.3%, 100% { opacity: 0; transform: translate3d(6cqw, 6cqw, 0) rotate(-3deg) scale(0.985); filter: blur(8px) brightness(0.4); }
}
@keyframes guides { 0%, 31% { opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes draw { 0% { stroke-dashoffset: 1; animation-timing-function: var(--ease); } 13%, 100% { stroke-dashoffset: 0; } }
@keyframes draw2 { 0%, 3% { stroke-dashoffset: 1; animation-timing-function: var(--ease); } 17%, 100% { stroke-dashoffset: 0; } }
@keyframes sweep {
  0%, 31%  { opacity: 0; background-position: 115% 0; animation-timing-function: ease-in-out; }
  33%      { opacity: 1; }
  44%      { opacity: 1; }
  47%, 100% { opacity: 0; background-position: -15% 0; }
}
@keyframes flare {
  0%, 28.8% { opacity: 0; transform: translate(-50%, -50%) scaleX(0); animation-timing-function: var(--ease); }
  31.2%    { opacity: 1; transform: translate(-50%, -50%) scaleX(1); animation-timing-function: ease-out; }
  42%      { opacity: 0.32; transform: translate(-50%, -50%) scaleX(0.6); }
  75%      { opacity: 0.32; transform: translate(-50%, -50%) scaleX(0.6); animation-timing-function: ease-in; }
  82%, 100% { opacity: 0; transform: translate(-50%, -50%) scaleX(0.2); }
}
@keyframes bloom {
  0%, 29%  { opacity: 0; transform: translate(-50%, -50%) scale(0.4); animation-timing-function: var(--ease); }
  31.2%    { opacity: 1; transform: translate(-50%, -50%) scale(1); animation-timing-function: ease-out; }
  40%, 75% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.15); }
  84%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}

/* ───────── Navbar ───────── */
.nav {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(18px, 2vw, 28px);
  padding-top: max(clamp(18px, 2vw, 28px), env(safe-area-inset-top, 0px));
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  border-radius: 10px;
}
/* ───────── Corpo e cartão ───────── */
.hero__body {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 0;
  overflow: hidden;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
  padding-block: max(28px, env(safe-area-inset-top, 0px)) 18px;
}
html.is-tight .hero__body { overflow-y: auto; }
/* modal com cantos chanfrados: corte maior no canto superior esquerdo e no inferior direito, corte pequeno nos outros dois */
.card-shell {
  --c1: 22px;
  --c2: 7px;
  position: relative;
  margin-block: auto;
  width: min(var(--card-w), 100%);
  transform-origin: 100% 0;
  transition: transform 0.45s var(--ease);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55));
}
.card {
  --cut: polygon(var(--c1) 0, calc(100% - var(--c2)) 0, 100% var(--c2), 100% calc(100% - var(--c1)), calc(100% - var(--c1)) 100%, var(--c2) 100%, 0 calc(100% - var(--c2)), 0 var(--c1));
  position: relative;
  isolation: isolate;
  padding: 34px 36px 32px;
  -webkit-clip-path: var(--cut);
          clip-path: var(--cut);
  /* borda de 1px: acende em ciano na quina cortada de cima, como os filetes do X */
  background: linear-gradient(135deg,
    rgba(140, 225, 255, 0.9) 0%, rgba(61, 139, 255, 0.5) 8%, rgba(150, 185, 255, 0.16) 26%,
    rgba(150, 185, 255, 0.11) 70%, rgba(61, 139, 255, 0.45) 100%);
}
.card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  -webkit-clip-path: var(--cut);
          clip-path: var(--cut);
  background:
    radial-gradient(90% 50% at 0% 0%, rgba(61, 139, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #0c1628 0%, #080e1c 100%);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--c1) + 12px);
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, #9fe6ff, rgba(61, 139, 255, 0));
  box-shadow: 0 0 10px rgba(116, 212, 255, 0.8);
  pointer-events: none;
}
.viewport { position: relative; transition: height 0.45s var(--ease); }
.viewport.is-sizing { overflow: hidden; }
.view { transition: opacity 0.26s ease, transform 0.42s var(--ease); }
.view.from-right { opacity: 0; transform: translateX(22px); }
.view.from-left { opacity: 0; transform: translateX(-22px); }
.view.to-left { opacity: 0; transform: translateX(-22px); }
.view.to-right { opacity: 0; transform: translateX(22px); }
.step { display: flex; flex-direction: column; gap: 22px; }
.step.from-right { animation: stepIn 0.42s var(--ease) both; }
.step.from-left { animation: stepInBack 0.42s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.head { display: flex; flex-direction: column; gap: 8px; }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(61, 139, 255, 0.28);
  font-size: 12px;
  font-weight: 500;
  color: #bfe0ff;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(90, 216, 166, 0.18);
}
.title {
  margin: 0;
  font-size: clamp(26px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-wrap: pretty;
}
.sub b { color: var(--ink); font-weight: 500; }

.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.icon-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%); border-color: rgba(255, 255, 255, 0.28); }
.icon-btn:active { transform: scale(0.94); }
.progress { display: flex; flex: 1; gap: 6px; }
.progress i {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}
.progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.progress i.is-on::after { transform: scaleX(1); }
.progress__label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ───────── Campos ───────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
/* dois campos curtos lado a lado (CPF e celular do "Criar conta"); em tela estreita, um embaixo do outro */
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__pair > .field { min-width: 0; }
@media (max-width: 380px) { .form__pair { grid-template-columns: 1fr; gap: 16px; } }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.caps { font-size: 11.5px; font-weight: 500; color: var(--warn); display: inline-flex; align-items: center; gap: 6px; }
.caps svg.i { width: 14px; height: 14px; }
.control {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  border-radius: var(--r-field);
  background: var(--field);
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.control:hover { background: var(--field-hover); border-color: var(--line-2); }
.control:focus-within {
  background: var(--field-focus);
  border-color: rgba(61, 139, 255, 0.75);
  box-shadow: 0 0 0 4px var(--ring);
}
.control > svg.i { position: absolute; left: 16px; color: var(--ink-3); pointer-events: none; transition: color 0.2s ease; }
.control:focus-within > svg.i { color: var(--brand-cyan); }
.input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 16px 0 46px;
  background: transparent;
  border: 0;
  border-radius: inherit;
  outline: none;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--ink);
  caret-color: var(--brand-cyan);
}
.input::placeholder { color: var(--ink-4); }
.input.has-action { padding-right: 52px; }
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #0b1426 inset;
  transition: background-color 9999s ease-out;
}
.control__action {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.control__action:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.control__action .i-eye-off { display: none; }
.control__action[aria-pressed="true"] .i-eye { display: none; }
.control__action[aria-pressed="true"] .i-eye-off { display: block; }
.field.has-error .control { border-color: rgba(255, 133, 133, 0.7); box-shadow: 0 0 0 4px var(--danger-ring); }
.field.has-error .control > svg.i { color: var(--danger); }
.error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
}
.error svg.i { width: 15px; height: 15px; margin-top: 1px; }

/* switch e checkbox */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-2);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}
.switch input:checked + .switch__track { background: var(--brand); border-color: var(--brand-hi); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 4px var(--ring); }
.hint-right { font-size: 13px; color: var(--ink-3); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid var(--line-3);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.check__box svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.3s var(--ease); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand-hi); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px var(--ring); }
.check a { color: var(--ink); text-underline-offset: 3px; }
.check.has-error .check__box { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-ring); }

/* ───────── Botões de vidro (glassmorphism) ─────────
   Fundo translúcido e desfocado, borda clara fina e reflexo na metade de cima.
   As luzes atrás (.card__light) dão cor para o vidro desfocar. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.985); }
.btn--primary,
.btn--soft {
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(14px) saturate(170%);
          backdrop-filter: blur(14px) saturate(170%);
}
/* reflexo do vidro */
.btn--primary::after,
.btn--soft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.btn--primary {
  height: 54px;
  padding: 0 60px;
  border: 1px solid rgba(170, 215, 255, 0.4);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(30, 90, 220, 0.55);
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.36) 0%, rgba(47, 110, 255, 0.22) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 22px rgba(116, 212, 255, 0.16),
    0 12px 30px -12px rgba(45, 120, 255, 0.7);
}
/* brilho que atravessa no hover */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover {
  border-color: rgba(195, 232, 255, 0.62);
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.48) 0%, rgba(47, 110, 255, 0.32) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 26px rgba(116, 212, 255, 0.24),
    0 16px 36px -12px rgba(45, 120, 255, 0.85);
}
.btn__chip {
  position: absolute;
  right: 7px;
  top: 7px;
  bottom: 7px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background-color 0.25s ease, transform 0.35s var(--ease);
}
.btn__chip > * { grid-area: 1 / 1; }
.btn__chip svg.i { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.35s var(--ease), opacity 0.2s ease; }
.btn--primary:hover .btn__chip { background: rgba(255, 255, 255, 0.24); }
.btn--primary:hover .btn__chip .i-arrow { transform: translateX(3px); }
.btn__chip .i-done, .btn__chip .spin { opacity: 0; }
.spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}
.btn.is-loading { cursor: progress; }
.btn.is-loading .btn__chip .i-arrow { opacity: 0; }
.btn.is-loading .btn__chip .spin { opacity: 1; animation: spin 0.8s linear infinite; }
.btn.is-done .btn__chip .i-arrow { opacity: 0; }
.btn.is-done .btn__chip .i-done { opacity: 1; }
.btn.is-done {
  border-color: rgba(170, 255, 215, 0.5);
  background: linear-gradient(180deg, rgba(90, 216, 166, 0.4) 0%, rgba(35, 164, 119, 0.26) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 30px -12px rgba(40, 190, 140, 0.7);
}
.btn[disabled] { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn--soft {
  height: 46px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(8, 15, 32, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -14px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.btn--soft svg.i { width: 17px; height: 17px; color: var(--brand-cyan); transition: transform 0.35s var(--ease); }
.btn--soft:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%),
    rgba(8, 15, 32, 0.32);
}
.btn--soft:hover svg.i { transform: translateY(-1px) scale(1.06); }

.btn--text {
  width: auto;
  align-self: center;
  height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.btn--text:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.btn--text[disabled] { color: var(--ink-4); }

/* luzes azuis atrás dos botões, dentro do modal */
.card__light {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.card__light i {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(40px);
}
.card__light i:nth-child(1) {
  width: 62%;
  left: -6%;
  bottom: 4%;
  background: #2f6bff;
  opacity: 0.42;
  animation: card-drift-a 14s ease-in-out infinite alternate;
}
.card__light i:nth-child(2) {
  width: 46%;
  right: -6%;
  bottom: 2%;
  background: #3fc3ff;
  opacity: 0.26;
  animation: card-drift-b 17s ease-in-out infinite alternate;
}
@keyframes card-drift-a { to { transform: translate(22%, -12%) scale(1.1); } }
@keyframes card-drift-b { to { transform: translate(-24%, -8%) scale(0.92); } }

.divider { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-4); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.status { margin: 0; min-height: 1.4em; font-size: 13px; line-height: 1.4; color: var(--ink-3); text-align: center; }
.status.is-error { color: var(--danger); }
.status:empty { min-height: 0; margin-top: -16px; }
.step > .status:empty, .form .status:empty { margin-top: -16px; }

/* senha: requisitos */
.meter { display: flex; gap: 5px; }
.meter i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: background-color 0.3s ease; }
.meter[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-level="3"] i:nth-child(-n+3) { background: var(--brand); }
.meter[data-level="4"] i { background: var(--ok); }
.rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rules li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.rules li svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rules li .r-ok { display: none; }
.rules li.is-ok { color: var(--ok); background: rgba(90, 216, 166, 0.08); border-color: rgba(90, 216, 166, 0.3); }
.rules li.is-ok .r-ok { display: block; }
.rules li.is-ok .r-dot { display: none; }

/* código de verificação */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0;
  text-align: center;
  border-radius: var(--r-field);
  border: 1px solid var(--line-2);
  background: var(--field);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  caret-color: var(--brand-cyan);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}
.otp input:focus { border-color: rgba(61, 139, 255, 0.8); box-shadow: 0 0 0 4px var(--ring); background: var(--field-focus); }
.otp input.is-filled { border-color: var(--line-3); }
.otp.has-error input { border-color: rgba(255, 133, 133, 0.7); }
.otp.shake { animation: shake 0.42s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.resend { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.demo-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 196, 107, 0.07);
  border: 1px dashed rgba(255, 196, 107, 0.3);
  font-size: 12.5px;
  line-height: 1.45;
  color: #f3d6a6;
}

/* tela de sucesso */
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 6px; }
.done .sub { max-width: 34ch; }
.seal {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(90, 216, 166, 0.28), rgba(90, 216, 166, 0.06) 70%);
  border: 1px solid rgba(90, 216, 166, 0.4);
}
.seal svg { width: 34px; height: 34px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.seal path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.step.is-current .seal path { animation: tick 0.6s 0.2s var(--ease) forwards; }
.seal::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(90, 216, 166, 0.5);
}
.step.is-current .seal::after { animation: ripple 1.6s 0.3s ease-out 2; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes ripple { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
.done .btn { margin-top: 10px; }

/* ───────── Rodapé ───────── */
.legal {
  border-top: 1px solid var(--line);
  padding-block: clamp(14px, 1.4vw, 22px);
  padding-bottom: max(clamp(14px, 1.4vw, 22px), env(safe-area-inset-bottom, 0px));
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
  text-align: center;
}
.legal p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); text-wrap: balance; }
.legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); transition: color 0.2s ease; }
.legal a:hover { color: var(--ink); }

/* ───────── Foco ───────── */
.btn:focus-visible, .icon-btn:focus-visible, .brand:focus-visible,
.control__action:focus-visible, .legal a:focus-visible, .check a:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
}

/* ───────── Modal de login (versão profissional) ─────────
   Uma coluna, rótulos visíveis acima dos campos, um único botão principal, "Esqueci a senha" junto da senha,
   "Criar conta" como caminho secundário no rodapé. Sem enfeites disputando atenção com o formulário. */
:root { --card-w: 408px; --r-field: 8px; }
.card-shell { filter: none; }
.card {
  -webkit-clip-path: none;
          clip-path: none;
  padding: 40px 40px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(9, 15, 28, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px -24px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
          backdrop-filter: blur(18px) saturate(130%);
}
.card::before, .card::after { content: none; }
.card__light { display: none; }

.step { gap: 24px; }
.head { gap: 6px; }
.title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.sub { font-size: 14px; color: var(--ink-3); }
.form { gap: 18px; }
.field { gap: 7px; }
.field__row { align-items: center; }
.field__aside { display: inline-flex; align-items: center; gap: 12px; }
.label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.caps { font-size: 12px; }

.control {
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
.control:hover { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.18); }
.control:focus-within {
  background: rgba(61, 139, 255, 0.05);
  border-color: #3d8bff;
  box-shadow: 0 0 0 3px rgba(61, 139, 255, 0.25);
}
.control > svg.i { display: none; }
.input { padding: 0 14px; font-size: 15px; }
.input.has-action { padding-right: 46px; }
.control__action { right: 4px; width: 36px; height: 36px; border-radius: 6px; }
.field.has-error .control { box-shadow: 0 0 0 3px var(--danger-ring); }

.link {
  font-size: 13px;
  font-weight: 500;
  color: #7fb6ff;
  text-decoration: none;
  border-radius: 4px;
}
.link:hover { color: #a9d0ff; text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }

.check--inline { align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.check--inline .check__box { width: 16px; height: 16px; margin-top: 0; border-radius: 4px; }
.check--inline .check__box svg { width: 10px; height: 10px; }

/* botão principal: sólido, com um reflexo discreto em cima */
.btn--primary {
  height: 44px;
  padding: 0 44px;
  border-radius: 8px;
  border: 1px solid rgba(140, 190, 255, 0.35);
  background: linear-gradient(180deg, #4b93ff 0%, #2f6fe8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 8px 20px -10px rgba(47, 111, 232, 0.7);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  font-size: 15px;
  font-weight: 600;
  text-shadow: none;
}
.btn--primary::after { display: none; }
.btn--primary:hover {
  border-color: rgba(170, 210, 255, 0.5);
  background: linear-gradient(180deg, #5a9cff 0%, #3478f0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 10px 24px -10px rgba(47, 111, 232, 0.85);
}
.btn__chip { right: 8px; top: 6px; bottom: 6px; background: none; border: 0; box-shadow: none; }
.btn--primary:hover .btn__chip { background: none; }
.btn__chip .i-arrow { display: none; }
.btn.is-done {
  border-color: rgba(150, 240, 200, 0.45);
  background: linear-gradient(180deg, #34c38f 0%, #1fa577 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px -10px rgba(31, 165, 119, 0.7);
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.btn--text { border-radius: 8px; }

.card__foot {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}
.card__foot .link { font-size: 13.5px; }
.trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: -8px 0 0;
  font-size: 12px;
  color: var(--ink-4);
}
.trust svg.i { width: 13px; height: 13px; }

/* ───────── Avisos vindos do servidor (login recusado, senha redefinida…) ───────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.45;
}
.alert svg.i { width: 16px; height: 16px; margin-top: 1px; }
.alert--erro { color: #ffc2c2; background: rgba(255, 92, 92, 0.08); border-color: rgba(255, 92, 92, 0.3); }
.alert--ok { color: #a6f0cf; background: rgba(52, 195, 143, 0.08); border-color: rgba(52, 195, 143, 0.3); }

/* ───────── Responsivo ───────── */
@media (max-width: 1100px) {
  :root { --card-w: 420px; }
}
@media (max-width: 900px) {
  .hero { grid-template-rows: auto 1fr auto; }
  .stage { position: relative; inset: auto; grid-row: 1; height: clamp(96px, 16svh, 160px); margin-top: max(10px, env(safe-area-inset-top, 0px)); margin-bottom: 6px; }
  .kt-wall { display: none; }
  .hero__body { grid-row: 2; justify-content: center; padding-block: 0 12px; }
  .card-shell { transform-origin: 50% 0; }
  .legal { grid-row: 3; padding-block: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .legal p { font-size: 12px; }
  .bg__shade { background: linear-gradient(to bottom, rgba(3, 6, 13, 0.4) 0%, transparent 20%, rgba(3, 6, 13, 0.6) 100%); }
}
@media (max-width: 520px) {
  .card { padding: 26px 20px 18px; }
  .badge { display: none; }
  .step { gap: 16px; }
  .form { gap: 12px; }
  .control { height: 48px; }
  .btn--primary { height: 52px; }
  .btn--soft { height: 44px; padding: 0 10px; font-size: 13.5px; gap: 7px; }
  .title { font-size: 24px; }
  .otp { gap: 6px; }
  .otp input { height: 52px; font-size: 20px; }
  .rules li { font-size: 12px; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .card { padding: 28px 32px 20px; }
  .step { gap: 18px; }
  .form { gap: 12px; }
  .badge { margin-bottom: 4px; }
  .title { font-size: 25px; }
  .control { height: 46px; }
  .btn--primary { height: 50px; }
  .btn--soft { height: 44px; }
  .otp input { height: 52px; }
}
@media (max-height: 700px) and (min-width: 901px) {
  .badge { display: none; }
  .sub { font-size: 13.5px; }
}

/* ───────── Movimento reduzido ───────── */
@media (max-width: 400px) {
  .btn--soft { white-space: nowrap; font-size: 13px; padding: 0 8px; gap: 6px; }
  .btn--soft svg.i { width: 15px; height: 15px; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .stage { height: 104px; margin-bottom: 4px; }
}

/* celular deitado: logo à esquerda e cartão à direita (empilhar não cabe na altura); o cartão rola por dentro se precisar */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
  :root { --gutter: 16px; --card-w: min(400px, 54vw); }
  .hero { grid-template-rows: 1fr auto; }
  .stage {
    position: absolute;
    top: 0;
    bottom: 34px;
    left: var(--pad-l);
    right: calc(var(--card-w) + var(--gutter) * 2);
    height: auto;
    margin: 0;
  }
  .hero__body { grid-row: 1; justify-content: flex-end; padding-block: max(10px, env(safe-area-inset-top, 0px)) 8px; }
  .card-shell { transform-origin: 100% 0; }
  .card { padding: 22px 22px 16px; }
  .legal { grid-row: 2; padding-block: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)); }
  .legal p { font-size: 11.5px; }
}
/* celular pequeno em pé: logo mais baixo para sobrar altura para o cartão */
@media (max-width: 520px) and (max-height: 600px) {
  .stage { height: 76px; margin-top: max(6px, env(safe-area-inset-top, 0px)); margin-bottom: 2px; }
  .legal p { font-size: 11.5px; }
}

/* monitores grandes (2K/4K sem ampliação do sistema): logo, cartão e rodapé crescem juntos, o fundo não */
@media (min-width: 2200px) and (min-height: 1250px) {
  .stage, .hero__body, .legal { zoom: 1.3; }
}
@media (min-width: 3000px) and (min-height: 1700px) {
  .stage, .hero__body, .legal { zoom: 1.75; }
}

/* telas de toque: campo com letra menor que 16 px faz o Safari do iPhone dar zoom ao tocar */
@media (pointer: coarse) {
  .input { font-size: 16px; }
}

/* ───────── Movimento reduzido ───────── */
/* com <html data-forcar-animacao> (chave na view, ligada desde 27/10/2026) nada disto vale: anima sempre */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-forcar-animacao]) *, :root:not([data-forcar-animacao]) *::before, :root:not([data-forcar-animacao]) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  :root:not([data-forcar-animacao]) .piece__img { animation: none !important; opacity: 1; transform: none; filter: none; }
  :root:not([data-forcar-animacao]) .guides, :root:not([data-forcar-animacao]) .sweep { display: none; }
  :root:not([data-forcar-animacao]) .flare { animation: none !important; opacity: 0.32; transform: translate(-50%, -50%) scaleX(0.6); }
  :root:not([data-forcar-animacao]) .bloom { animation: none !important; opacity: 0.25; transform: translate(-50%, -50%) scale(1.15); }
  :root:not([data-forcar-animacao]) .piece { transform: none; }
  :root:not([data-forcar-animacao]) .btn.is-loading .btn__chip .spin { animation: none; }
  :root:not([data-forcar-animacao]) .kt-row { animation: none !important; }
}
