/* StarkPay v2 — telas de acesso (login e cadastro) com o escudo 3D, 30/11/2026 (+ coreografia/ponte entre as telas, mesma data). Linkado por data/m5_auth_head.php (só na v2).
   Layout inteiro aqui (a v2 não carrega o CSS da v1 nem o Bootstrap): arte à esquerda, cartão do formulário à direita;
   no celular a arte vira faixa no topo e o escudo é o selo da folha. Par de assets/js/mp-auth3d.js.
   Escopo: body.m5a-login / .m5a-register (formulário, vale até sem JS) e html.a3 (entrada, cena e saída, só com JS).
   Estados no <html>: a3-in (quadro de ligação, antes do JS) → a3-run (entrada, ≤ 1,8 s) → a3-pronto · a3-sai (saída) · a3-calmo.
   Nada nasce escondido sem garantia: a3-in tem um "acende" próprio se o JS não vier. */

:root{
  /* paleta do manual de identidade (prevalece): ciano-claro #C9FBFF, ciano #00E0FF, azul #005EB0, marinho #01244A,
     neutros branco / #DEDBD9 / preto; fundo #020F26 com brilho teal radial; cantos arredondados, campos em pílula, Sora */
  --a3-fundo:#020F26; --a3-lp:#020A1A; --a3-cartao:#000;
  --a3-ciano:#00E0FF; --a3-claro:#C9FBFF; --a3-azul:#005EB0; --a3-marinho:#01244A; --a3-azul-2:#0B7FB8; --a3-neutro:#DEDBD9;
  --a3-texto:#FFFFFF; --a3-pedra:#9DB3C7; --a3-pedra-2:#6C849B;
  --a3-fio:rgba(150,205,255,.075); --a3-fio-2:rgba(150,205,255,.13); --a3-fio-3:rgba(150,205,255,.24);
  --a3-campo:rgba(150,205,255,.035); --a3-campo-f:rgba(0,222,251,.05); --a3-erro:#F26464; --a3-ok:#22D39A;
  --a3-grad:linear-gradient(90deg,#005EB0 0%,#00E0FF 100%); --a3-grad-claro:linear-gradient(100deg,#00E0FF 0%,#7CEEFF 55%,#C9FBFF 100%);
  --a3-ease:cubic-bezier(.16,1,.3,1);
  --a3-safe-top:env(safe-area-inset-top, 0px); --a3-safe-bot:env(safe-area-inset-bottom, 0px);
  --a3-sym-ar:0.7604;          /* escudo: 25,357 × 33,347 */
  --a3-v-lp:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.357 33.347'%3E%3Cg fill='none' stroke='%23BFF6FF' stroke-opacity='.9' stroke-width='1.3' stroke-linejoin='round' vector-effect='non-scaling-stroke'%3E%3Cpath vector-effect='non-scaling-stroke' d='M7.889 2.645C9.371 3.938 10.975 5.085 12.679 6.074C15.036 7.357 17.58 8.268 20.215 8.775V12.909L25.357 15.878V4.118L24.421 4.086C20.413 3.952 16.527 2.666 13.23 .382L12.679 0L12.127 .382C10.801 1.301 9.377 2.058 7.891 2.645Z'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M0 9.724C4.316 9.157 8.838 8.163 12.679 6.074C10.975 5.086 9.372 3.937 7.889 2.645C5.681 3.514 3.33 4.006 .936 4.086L0 4.118Z'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M18.952 24.053L23.422 26.634C24.293 25.373 24.921 23.973 25.199 22.466L25.322 21.794L17.249 17.132L5.142 10.143V8.813C3.432 9.209 1.7 9.5 0 9.722V13.11L5.32 16.181L8.196 17.842L18.952 24.051Z'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M3.765 28.769C6.159 31.067 9.363 32.673 12.375 33.313C12.476 33.334 12.575 33.347 12.677 33.347C12.779 33.347 12.88 33.334 12.979 33.313C16.848 32.49 21.042 30.073 23.419 26.632L18.949 24.052C15.477 28.529 8.997 29.074 3.762 28.767Z'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M3.765 28.769C6.563 28.933 9.717 28.853 12.578 28.061C9.848 27.233 6.285 25.045 5.366 22.148L0 19.05V20.731C0 23.868 1.528 26.621 3.765 28.769Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ══ 0. base (sem Bootstrap) ══ */
*, *::before, *::after{ box-sizing:border-box; }
html, body{ margin:0; min-height:100%; }
body.m5a{
  background:var(--a3-fundo); color:var(--a3-texto);
  font:400 15px/1.5 'Inter var', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility;
  -webkit-tap-highlight-color:transparent;
}
body.m5a a{ color:inherit; }
body.m5a button{ font:inherit; cursor:pointer; }
body.m5a :focus-visible{ outline:2px solid var(--a3-ciano); outline-offset:3px; }
/* luz de fundo da página inteira (o lado do formulário também respira a marca) */
body.m5a::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(58vmax 46vmax at 74% 44%, rgba(0,118,150,.42), rgba(0,80,120,.12) 45%, transparent 72%),
             radial-gradient(40vmax 30vmax at 72% 108%, rgba(0,224,255,.10), transparent 70%);
}
/* assinatura do manual: o escudo gigante translúcido como marca d'água (atrás do formulário) */
body.m5a::after{
  content:""; position:fixed; z-index:0; pointer-events:none; right:-6vw; top:50%; width:min(62vw, 820px); aspect-ratio:25.357/33.347;
  transform:translateY(-50%); opacity:.07; background:var(--spa-escudo, none) center/contain no-repeat;
  -webkit-mask-image:linear-gradient(180deg, #000 30%, transparent 96%); mask-image:linear-gradient(180deg, #000 30%, transparent 96%);
}

/* ══ 1. grade: arte | formulário ══ */
.m5a-wrap{ position:relative; z-index:1; display:grid; grid-template-columns:minmax(0, 1.06fr) minmax(0, 1fr); min-height:100vh; min-height:100dvh; }
.m5a-art{
  position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column;
  padding:clamp(28px, 3.4vw, 46px) clamp(28px, 4vw, 58px) clamp(24px, 3vw, 38px);
  border-right:1px solid var(--a3-fio);
}
.m5a-art::after{   /* fio de luz na divisa */
  content:""; position:absolute; right:-1px; top:14%; bottom:14%; width:1px; z-index:3; pointer-events:none;
  background:linear-gradient(180deg, transparent, rgba(0,222,251,.45) 50%, transparent);
}
.mp-art-img{ position:absolute; inset:0; z-index:-1; overflow:hidden; background:#04060B; }
.mp-art-img::before{   /* o globo da marca, horizonte na parte de baixo */
  content:""; position:absolute; left:-32%; right:-32%; top:17%; aspect-ratio:1920/959;
  background:var(--spa-globo) 50% 0 / 100% auto no-repeat; opacity:.95;
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%); mask-image:linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}
.mp-art-img::after{    /* véus: escurece em cima (logo/escudo) e embaixo (texto) */
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(4,6,11,.85) 0%, rgba(4,6,11,.2) 30%, rgba(4,6,11,0) 50%, rgba(4,6,11,.55) 66%, rgba(4,6,11,.9) 82%, #04060B 100%),
             linear-gradient(90deg, rgba(4,6,11,.5), transparent 30%, transparent 70%, rgba(4,6,11,.75));
}
.mp-art-img .spa-halo{   /* luz atrás do escudo */
  position:absolute; left:50%; top:36%; width:min(46vw, 640px); aspect-ratio:1; transform:translate(-50%,-50%); z-index:1;
  background:radial-gradient(closest-side, rgba(0,222,251,.20), rgba(0,94,174,.12) 45%, transparent 72%); filter:blur(6px);
}
.mp-art-img .spa-grade{  /* grade técnica sutil, some nas bordas */
  position:absolute; inset:0; z-index:1; opacity:.5;
  background-image:linear-gradient(rgba(150,205,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(150,205,255,.05) 1px, transparent 1px);
  background-size:56px 56px; background-position:center;
  -webkit-mask-image:radial-gradient(60% 46% at 50% 36%, #000, transparent 75%); mask-image:radial-gradient(60% 46% at 50% 36%, #000, transparent 75%);
}
.spa-topo{ position:relative; z-index:4; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.spa-lema{ font:500 12.5px/1.2 'Sora', 'Inter var', sans-serif; letter-spacing:.01em; color:rgba(0,224,255,.55); white-space:nowrap; }
.spa-selo{ position:absolute; z-index:3; right:clamp(28px, 4vw, 58px); bottom:clamp(250px, 34vh, 330px); width:104px; height:104px; opacity:.9; filter:drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.spa-selo-txt{ transform-origin:60px 60px; }
@media (prefers-reduced-motion:no-preference){ .spa-selo-txt{ animation:spaGira 26s linear infinite; } }
@keyframes spaGira{ to{ transform:rotate(360deg); } }
.mp-art-pe b{ font-weight:700; color:var(--a3-texto); }
.m5a-logo{ position:relative; z-index:4; display:inline-flex; align-self:flex-start; line-height:0; }
.m5a-logo img{ height:34px; width:auto; display:block; }
.m5a-copy{ position:relative; z-index:3; margin-top:auto; max-width:540px; }
.mp-trilha{ display:flex; align-items:center; gap:8px; margin:0 0 14px; font:600 12px/1 'Sora', 'Inter var', sans-serif; letter-spacing:.02em; color:var(--a3-pedra); }
.mp-trilha span:first-child{ color:var(--a3-texto); }
.mp-trilha svg{ width:13px; height:13px; color:var(--a3-ciano); }
.m5a-art-h{ margin:0 0 12px; font:700 clamp(28px, 2.6vw, 38px)/1.12 'Sora', 'Inter var', sans-serif; letter-spacing:-.025em; color:var(--a3-texto); text-wrap:balance; }
.m5a-art-h em{ font-style:normal; background:var(--a3-grad); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
.m5a-art-p{ margin:0 0 24px; max-width:46ch; font-size:15px; line-height:1.6; color:var(--a3-pedra); }
.m5a-itens{ list-style:none; margin:0; padding:22px 0 0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); border-top:1px solid var(--a3-fio-2); }
.m5a-item{ display:flex; flex-direction:column; gap:12px; padding:0 16px; border-left:1px solid var(--a3-fio); }
.m5a-item:first-child{ padding-left:0; border-left:0; }
.m5a-ico{ display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:10px; color:#04121B; border:1px solid rgba(0,222,251,.5);
  background:linear-gradient(158deg, rgba(255,255,255,.62) 0%, #7FE9FD 11%, #00DEFB 27%, #0B7FB8 50%, #005EAE 70%, #04121B 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65), inset 0 -5px 10px rgba(0,0,0,.45), 0 6px 14px rgba(0,0,0,.45); }
.m5a-ico svg{ width:15px; height:15px; }
.m5a-item-t{ display:flex; flex-direction:column; gap:3px; }
.m5a-item-t b{ font:700 14.5px/1.2 'Sora', 'Inter var', sans-serif; color:var(--a3-texto); }
.m5a-item-t small{ font-size:12.5px; color:var(--a3-pedra); }
.mp-art-pe{ position:relative; z-index:3; display:flex; justify-content:space-between; gap:16px; margin-top:28px; padding-top:18px; border-top:1px solid var(--a3-fio); font-size:12px; color:var(--a3-pedra-2); }
.spa-cartoes{ position:absolute; z-index:2; right:5%; top:44%; width:clamp(170px, 17vw, 260px); height:auto; transform:translateY(-50%) rotate(-4deg); opacity:.9; pointer-events:none;
  filter:drop-shadow(0 30px 40px rgba(0,0,0,.6)); }

/* ── lado do formulário ── */
.m5a-side{ position:relative; display:flex; align-items:center; justify-content:center; padding:clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px); }
.m5a-panel{ position:relative; width:100%; max-width:452px; }
.m5a-card{
  position:relative; padding:38px 36px 32px; border-radius:24px;
  background:linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.9) 62%);
  border:1px solid rgba(150,205,255,.10);
  box-shadow:inset 0 1px 0 rgba(190,230,255,.06), 0 60px 120px -50px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.35);
}
.m5a-card::after{  /* fio ciano no topo do cartão */
  content:""; position:absolute; left:22px; right:22px; top:-1px; height:1px; pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(0,222,251,.6), transparent);
}
@media (min-width:992px){ .m5a-card{ -webkit-backdrop-filter:blur(14px) saturate(120%); backdrop-filter:blur(14px) saturate(120%); } }

/* título: rótulo de três traços + Sora */
.m5a-card :is(.login-title, .register-title){
  margin:0 0 10px; font:700 clamp(25px, 2.1vw, 30px)/1.14 'Sora', 'Inter var', sans-serif; letter-spacing:-.025em; color:var(--a3-texto);
}
.m5a-card :is(.login-title, .register-title) span{ font-weight:300; color:var(--a3-texto); }
.m5a-card :is(.login-title, .register-title)::before{
  /* rótulo em pílula com a lupa — a "barra de busca" das páginas do manual */
  content:"Área do lojista"; display:table; margin:0 0 18px; padding:8px 16px 8px 36px; border-radius:999px;
  font:600 12px/1.2 'Sora', 'Inter var', sans-serif; letter-spacing:.01em; color:var(--a3-texto); -webkit-text-fill-color:var(--a3-texto);
  background:#000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px 50% / 14px 14px no-repeat;
  border:1px solid rgba(150,205,255,.16);
}
body.m5a-register .register-title::before{ content:"Nova conta"; }
.m5a-card :is(.login-sub, .register-sub){ margin:0 0 26px; max-width:42ch; font-size:14px; line-height:1.6; color:var(--a3-pedra); }

/* campos */
.m5a-card .mb-3{ margin-bottom:16px; } .m5a-card .mb-2{ margin-bottom:8px; }
.m5a-card .form-label{ display:block; margin-bottom:9px; font-size:10.5px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--a3-pedra); }
.m5a-card .field-header{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:9px; }
.m5a-card .field-header .form-label{ margin:0; }
.m5a-card .input-icon-wrap, .m5a-card .position-relative{ position:relative; }
.m5a-card .form-control:not(.tfa-digit){
  display:block; width:100%; height:56px; padding:0 20px 0 52px; margin:0;
  font:450 16px/1.2 'Inter var', 'Inter', system-ui, sans-serif; color:var(--a3-texto);
  background:var(--a3-campo); border:1px solid var(--a3-fio-2); border-radius:999px; outline:none;
  box-shadow:inset 0 1px 0 rgba(190,230,255,.03); -webkit-appearance:none; appearance:none;
  transition:border-color .3s var(--a3-ease), background-color .3s var(--a3-ease), box-shadow .3s var(--a3-ease);
}
.m5a-card .form-control:not(.tfa-digit):hover{ border-color:var(--a3-fio-3); }
.m5a-card .form-control:not(.tfa-digit):focus{ border-color:rgba(0,222,251,.62); background:var(--a3-campo-f); box-shadow:0 0 0 4px rgba(0,222,251,.09); caret-color:var(--a3-ciano); }
.m5a-card .form-control::placeholder{ color:var(--a3-pedra-2); opacity:1; }
.m5a-card .form-control.is-invalid{ border-color:rgba(242,100,100,.65) !important; background:rgba(242,100,100,.04); box-shadow:0 0 0 4px rgba(242,100,100,.08) !important; }
/* autofill do Chrome: sem fundo amarelo/branco */
.m5a-card .form-control:-webkit-autofill, .m5a-card .form-control:-webkit-autofill:hover, .m5a-card .form-control:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--a3-texto); caret-color:var(--a3-ciano);
  -webkit-box-shadow:0 0 0 1000px #0D1420 inset !important; transition:background-color 9999s ease-out 0s;
}
.m5a-card .field-ico{ position:absolute; z-index:2; left:21px; top:50%; width:18px; height:18px; margin-top:-9px; color:var(--a3-pedra-2); pointer-events:none; transition:color .3s var(--a3-ease); }
.m5a-card .field-ico svg{ width:18px; height:18px; display:block; }
.m5a-card .input-icon-wrap:focus-within .field-ico{ color:var(--a3-ciano); }
.m5a-card .input-icon-wrap:has(.field-toggle) .form-control{ padding-right:56px; }
/* cadastro: as senhas da v1 não têm ícone — ganham o cadeado, para a coluna de ícones não quebrar */
body.m5a-register .m5a-card .mb-3 > .position-relative::before{
  content:""; position:absolute; z-index:2; left:21px; top:50%; width:18px; height:18px; margin-top:-9px; pointer-events:none;
  background:currentColor; color:var(--a3-pedra-2); transition:color .3s var(--a3-ease);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.m5a-register .m5a-card .mb-3 > .position-relative:focus-within::before{ color:var(--a3-ciano); }
body.m5a-register .m5a-card .mb-3 > .position-relative > .form-control{ padding-left:52px !important; padding-right:58px !important; }
/* olho: 40 px de toque, centrado na altura do campo */
.m5a-card :is(.field-toggle, .show-password-button){
  position:absolute !important; z-index:3; top:50% !important; right:8px !important; left:auto !important; bottom:auto !important;
  width:40px; height:40px; margin:0 !important; padding:11px; transform:translateY(-50%) !important; border:0;
  display:grid !important; place-items:center; border-radius:50%; color:var(--a3-pedra-2) !important; background:transparent;
  font-size:18px; line-height:1; text-decoration:none; transition:color .25s var(--a3-ease), background-color .25s var(--a3-ease);
}
.m5a-card :is(.field-toggle, .show-password-button):hover{ color:var(--a3-texto) !important; background:rgba(150,205,255,.07); }
.m5a-card .field-toggle svg{ width:18px; height:18px; }
/* o ícone de olho do cadastro (v1) é da fonte Remix (não carregada aqui): desenhado em máscara */
.m5a-card .show-password-button i{ display:block; width:18px; height:18px; background:currentColor; font-size:0;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.m5a-card .show-password-button i.ri-eye-off-line{ opacity:.7; }

/* rótulo que flutua (o JS põe .a3-rot e .a3-fl; sem JS ficam o rótulo de cima e o placeholder) */
html.a3-fl-on .a3-sr{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.a3-fl{ position:relative; }
.a3-fl .form-control:not(.tfa-digit){ padding-top:17px !important; }
.a3-fl .form-control::placeholder{ color:transparent !important; transition:none; }
.a3-fl.a3-dica .form-control:focus::placeholder{ color:var(--a3-pedra-2) !important; transition:color .3s var(--a3-ease) .12s; }
.a3-rot{
  position:absolute; z-index:2; left:52px; right:58px; top:50%; pointer-events:none;
  font-size:15.5px; line-height:1.2; font-weight:400; color:var(--a3-pedra); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  transform:translateY(-50%); transform-origin:0 50%;
  transition:transform .38s var(--a3-ease), color .3s var(--a3-ease), letter-spacing .38s var(--a3-ease);
}
.a3-fl:focus-within .a3-rot, .a3-fl.a3-cheio .a3-rot, .a3-fl:has(input:-webkit-autofill) .a3-rot{ transform:translateY(-118%) scale(.74); letter-spacing:.04em; }
.a3-fl:focus-within .a3-rot{ color:var(--a3-ciano); }
.a3-fl:has(.is-invalid) .a3-rot{ color:var(--a3-erro); }
body.m5a input:-webkit-autofill{ animation-name:a3Autofill; animation-duration:1ms; }
/* login: "Esqueceu a senha?" desce para a linha do "Lembrar", alinhado à direita */
body.m5a-login .forgot-link{ font-size:13px; font-weight:500; color:var(--a3-ciano); text-decoration:none; white-space:nowrap; }
body.m5a-login .forgot-link:hover{ text-decoration:underline; text-underline-offset:3px; }
html.a3-fl-on body.m5a-login .mb-2{ position:relative; }
html.a3-fl-on body.m5a-login .field-header{ margin:0; height:0; }
html.a3-fl-on body.m5a-login .forgot-link{ position:absolute; right:0; top:calc(100% + 9px); z-index:2; line-height:24px; }

/* lembrar (interruptor) */
body.m5a-login .remember-row{ position:relative; display:flex; align-items:center; margin:8px 0 24px; min-height:24px; }
body.m5a-login .remember-row input{ position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
body.m5a-login .remember-row label{ display:inline-flex; align-items:center; gap:10px; font-size:13.5px; color:var(--a3-pedra); cursor:pointer; user-select:none; }
.remember-toggle{ position:relative; width:38px; height:22px; flex:none; }
.remember-toggle-track{ position:absolute; inset:0; border-radius:999px; background:rgba(150,205,255,.1); border:1px solid var(--a3-fio-2); transition:background .3s var(--a3-ease), border-color .3s; }
.remember-toggle-thumb{ position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#C9D6E3; box-shadow:0 2px 6px rgba(0,0,0,.4); transition:transform .35s var(--a3-ease), background .3s; }
.remember-row input:checked ~ label .remember-toggle-track{ background:var(--a3-grad); border-color:transparent; }
.remember-row input:checked ~ label .remember-toggle-thumb{ transform:translateX(16px); background:#fff; }
.remember-row input:focus-visible ~ label .remember-toggle-track{ box-shadow:0 0 0 3px rgba(0,222,251,.3); }

/* botões: primário = placa metálica StarkPay (azul→ciano, alto-brilho, facho que varre); secundário fantasma */
.m5a-card :is(.btn-login, .btn-register){
  position:relative; overflow:hidden; isolation:isolate; display:block; width:100%; height:50px; border-radius:999px; border:1px solid rgba(0,222,251,.55);
  font:600 15.5px/1 'Sora', 'Inter var', sans-serif; letter-spacing:.005em; color:var(--a3-marinho);
  background:var(--a3-grad-claro);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75), inset 0 -6px 12px rgba(0,94,176,.18), 0 16px 34px -16px rgba(0,224,255,.75);
  transition:transform .35s var(--a3-ease), box-shadow .35s var(--a3-ease), filter .35s var(--a3-ease), opacity .2s;
}
.m5a-card :is(.btn-login, .btn-register)::after{
  content:""; position:absolute; inset:-2px; z-index:-1; pointer-events:none;
  background:linear-gradient(115deg, transparent 34%, rgba(255,255,255,.75) 47%, transparent 61%); transform:translateX(-130%);
  transition:transform .85s cubic-bezier(.22,.61,.36,1);
}
.m5a-card :is(.btn-login, .btn-register):hover:not(:disabled){ transform:translateY(-1px); box-shadow:inset 0 1px 0 rgba(255,255,255,.8), inset 0 -6px 12px rgba(0,94,176,.18), 0 0 30px rgba(0,224,255,.45), 0 18px 36px -16px rgba(0,224,255,.8); }
.m5a-card :is(.btn-login, .btn-register):hover:not(:disabled)::after{ transform:translateX(130%); }
.m5a-card :is(.btn-login, .btn-register):active:not(:disabled){ transform:translateY(0) scale(.99); }
.m5a-card :is(.btn-login, .btn-register):disabled{ opacity:.75; cursor:progress; }
body.m5a-login .create-link-lead{ display:flex; align-items:center; gap:14px; margin:26px 0 12px; font-size:12px; letter-spacing:.04em; color:var(--a3-pedra-2); }
body.m5a-login .create-link-lead::before, body.m5a-login .create-link-lead::after{ content:""; flex:1; height:1px; background:var(--a3-fio-2); }
.m5a-card .btn-create-account{
  display:flex; align-items:center; justify-content:center; gap:10px; height:48px; border-radius:999px; text-decoration:none;
  background:transparent; border:1px solid var(--a3-fio-3); font:600 14px/1 'Sora', 'Inter var', sans-serif; color:var(--a3-texto);
  transition:border-color .3s var(--a3-ease), background-color .3s var(--a3-ease), color .3s;
}
.m5a-card .btn-create-account svg{ width:16px; height:16px; color:var(--a3-ciano); transition:transform .35s var(--a3-ease); }
.m5a-card .btn-create-account:hover{ border-color:rgba(0,222,251,.55); background:rgba(0,222,251,.05); }
.m5a-card .btn-create-account:hover svg{ transform:translateX(3px); }
.m5a-card .create-link{ margin-top:16px; text-align:center; font-size:13px; }
.m5a-card .create-link a{ color:var(--a3-pedra); text-decoration:none; } .m5a-card .create-link a:hover{ color:var(--a3-texto); }

/* avisos (toast da v1) */
.toast-container{ position:fixed; top:calc(18px + var(--a3-safe-top)); left:50%; transform:translateX(-50%); z-index:2147483100; width:min(380px, 92vw); display:flex; flex-direction:column; gap:10px; }
.toastx{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:14px 16px; border-radius:14px;
  background:rgba(12,16,26,.94); border:1px solid var(--a3-fio-3); box-shadow:0 20px 40px -18px rgba(0,0,0,.9); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  animation:a3Toast .4s var(--a3-ease) both; }
.toastx .t-title{ font:700 13.5px/1.3 'Sora', 'Inter var', sans-serif; color:var(--a3-texto); margin-bottom:2px; }
.toastx .t-msg{ font-size:13px; line-height:1.45; color:var(--a3-pedra); }
.toastx .t-close{ cursor:pointer; font-size:20px; line-height:1; color:var(--a3-pedra-2); padding:0 2px; }

/* ══ 2. 2FA: seis células, separadas 3 + 3 ══ */
body.m5a-login #tfa-panel{ text-align:center; }
body.m5a-login #tfa-panel .tfa-head .m5a-ico.lg{ width:58px; height:58px; margin:0 auto 18px; border-radius:16px; }
body.m5a-login #tfa-panel .tfa-head .m5a-ico.lg svg{ width:24px; height:24px; }
body.m5a-login .m5a-tfa-t{ margin:0 0 8px; font:700 22px/1.2 'Sora', 'Inter var', sans-serif; letter-spacing:-.02em; color:var(--a3-texto); }
body.m5a-login .m5a-tfa-s{ margin:0; font-size:13.5px; line-height:1.6; color:var(--a3-pedra); }
body.m5a-login .tfa-inputs{ display:flex; gap:9px; justify-content:center; margin:26px 0 16px; }
body.m5a-login .tfa-digit{
  width:50px; height:60px; border-radius:18px; padding:0; text-align:center; outline:none;
  font:600 24px/1 'Inter var', 'Inter', system-ui, sans-serif; font-variant-numeric:tabular-nums; color:var(--a3-texto); caret-color:transparent;
  background:var(--a3-campo); border:1px solid var(--a3-fio-2); box-shadow:none;
  transition:border-color .3s var(--a3-ease), background-color .3s var(--a3-ease), box-shadow .3s var(--a3-ease);
}
body.m5a-login .tfa-digit:nth-child(3){ margin-right:9px; }
body.m5a-login .tfa-digit:focus{ border-color:rgba(0,222,251,.65); background-color:var(--a3-campo-f); box-shadow:0 0 0 4px rgba(0,222,251,.09); }
body.m5a-login .tfa-digit:focus:not(.a3-cheio){
  background-image:linear-gradient(var(--a3-ciano), var(--a3-ciano)); background-repeat:no-repeat; background-position:50% 72%; background-size:14px 2px;
  animation:a3Cursor 1.05s steps(1) infinite;
}
body.m5a-login .tfa-digit.a3-cheio{ border-color:var(--a3-fio-3); background-color:rgba(150,205,255,.06); }
body.m5a-login .tfa-inputs.verifying .tfa-digit{ border-color:rgba(0,222,251,.6); animation:a3Verifica 1.1s ease-in-out infinite; }
body.m5a-login .tfa-inputs.verifying .tfa-digit:nth-child(2){ animation-delay:.1s } body.m5a-login .tfa-inputs.verifying .tfa-digit:nth-child(3){ animation-delay:.2s }
body.m5a-login .tfa-inputs.verifying .tfa-digit:nth-child(4){ animation-delay:.3s } body.m5a-login .tfa-inputs.verifying .tfa-digit:nth-child(5){ animation-delay:.4s }
body.m5a-login .tfa-inputs.verifying .tfa-digit:nth-child(6){ animation-delay:.5s }
body.m5a-login .tfa-inputs.err .tfa-digit{ border-color:rgba(242,100,100,.7); }
body.m5a-login .tfa-tile{ width:72px; height:72px; margin:24px auto 14px; border-radius:50%; display:flex; align-items:center; justify-content:center; animation:a3Pop .4s cubic-bezier(.34,1.56,.64,1) both; }
body.m5a-login .tfa-tile.ok{ background:radial-gradient(circle, rgba(0,222,251,.18), rgba(0,222,251,0) 70%); border:1px solid rgba(0,222,251,.6); box-shadow:0 0 50px -6px rgba(0,222,251,.45); }
body.m5a-login .tfa-tile.err{ background:rgba(242,100,100,.07); border:1px solid rgba(242,100,100,.55); }
body.m5a-login .login-card{ transition:box-shadow .5s, border-color .5s; }
body.m5a-login .login-card.tfa-glow-ok{ border-color:rgba(0,222,251,.4); box-shadow:0 60px 120px -50px rgba(0,0,0,.95), 0 0 90px -40px rgba(0,222,251,.5); }
body.m5a-login .login-card.tfa-glow-err{ border-color:rgba(242,100,100,.4); }
body.m5a-login .login-card.tfa-shake{ animation:a3Nega .55s ease; }
body.m5a-login #confirm-2fa-button{ margin-top:4px; }

/* ══ 3. cadastro ══ */
body.m5a-register .reg-specs{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin:0 0 24px; }
body.m5a-register .reg-spec{ display:flex; flex-direction:column; gap:4px; padding:11px 12px; border-radius:12px; border:1px solid var(--a3-fio-2); background:rgba(150,205,255,.03); }
body.m5a-register .reg-spec b{ font:700 16px/1 'Sora', 'Inter var', sans-serif; background:var(--a3-grad); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
body.m5a-register .reg-spec span{ font-size:11.5px; line-height:1.25; color:var(--a3-pedra); }
body.m5a-register .m5a-card .mb-3{ margin-bottom:12px; }
body.m5a-register .form-check{ display:flex; align-items:flex-start; gap:10px; padding:4px 0; }
body.m5a-register .form-check-input{ flex:none; width:18px; height:18px; margin:2px 0 0; accent-color:var(--a3-ciano); cursor:pointer; }
body.m5a-register .form-check-label{ font-size:13px; line-height:1.5; color:var(--a3-pedra); cursor:pointer; }
body.m5a-register .form-check-label a{ color:var(--a3-ciano); text-decoration:none; }
body.m5a-register .lf-divider{ display:flex; align-items:center; gap:14px; margin:20px 0 14px; font:600 10.5px/1 'Inter var', sans-serif; letter-spacing:.26em; color:var(--a3-pedra-2); }
body.m5a-register .lf-divider::before, body.m5a-register .lf-divider::after{ content:""; flex:1; height:1px; background:var(--a3-fio-2); }
body.m5a-register .login-link{ margin-top:18px; text-align:center; font-size:13.5px; color:var(--a3-pedra); }
body.m5a-register .login-link a{ margin-left:6px; font-weight:600; color:var(--a3-ciano); text-decoration:none; }
body.m5a-register .login-link a:hover{ text-decoration:underline; text-underline-offset:3px; }
.a3-trilho{ display:flex; gap:6px; margin:0 0 24px; }
.a3-trilho i{ position:relative; flex:1; height:2px; border-radius:2px; overflow:hidden; background:var(--a3-fio-2); }
.a3-trilho i::after{ content:""; position:absolute; inset:0; background:var(--a3-grad); transform:scaleX(0); transform-origin:0 50%; transition:transform .7s var(--a3-ease); }
.a3-trilho i.ok::after{ transform:none; }
.a3-cap{ display:flex; align-items:center; gap:12px; margin:24px 0 12px; font:600 10.5px/1 'Inter var', 'Inter', system-ui, sans-serif; letter-spacing:.22em; text-transform:uppercase; color:var(--a3-pedra); }
form > .a3-cap:first-child{ margin-top:0; }
.a3-cap b{ min-width:22px; font:700 13px/1 'Sora', 'Inter var', sans-serif; letter-spacing:.02em; color:var(--a3-texto); transition:color .5s var(--a3-ease); }
.a3-cap i{ flex:1; height:1px; background:var(--a3-fio); }
.a3-cap.ok b{ color:var(--a3-ciano); } .a3-cap.ok span{ color:var(--a3-texto); }
/* PC: a página do cadastro é mais alta que a tela — a arte fica presa enquanto o formulário rola */
@media (min-width:992px){
  body.m5a-register .m5a-art{ position:sticky; top:0; align-self:start; height:100vh; height:100dvh; }
  body.m5a-register .m5a-side{ align-items:flex-start; }
}

/* ══ 4. o quadro de ligação (antes do JS) ══ */
html.a3-in, html.a3-in body.m5a{ background-color:var(--a3-lp) !important; }
html.a3-in.a3-lp:not(.a3-js)::after{
  content:""; position:fixed; z-index:2147483000; left:50%; top:48%; width:clamp(84px, 8.4vw, 108px); aspect-ratio:25.357/33.347;
  transform:translate(-50%,-50%); background:var(--a3-v-lp) center/100% 100% no-repeat; pointer-events:none;
  animation:a3Apaga .4s 2.4s both;
}
html.a3-in body.m5a :is(.mp-art-img, .spa-topo, .m5a-copy, .mp-art-pe, .m5a-card, .a3-ancora, .spa-cartoes, .spa-selo),
html.a3-in body.m5a .m5a-art::after, html.a3-in body.m5a::before{ animation:a3Garante .5s 2.4s both !important; }
html.a3-in.a3-js body.m5a :is(.mp-art-img, .spa-topo, .m5a-copy, .mp-art-pe, .m5a-card, .a3-ancora, .spa-cartoes, .spa-selo),
html.a3-in.a3-js body.m5a .m5a-art::after, html.a3-in.a3-js body.m5a::before{ animation-delay:6s !important; }

/* ══ 5. o contorno que liga as telas (fixo, por cima de tudo) ══ */
.a3-contrato{ position:fixed; inset:0; z-index:2147483000; pointer-events:none; }
.a3-contrato .a3-v{ position:absolute; display:block; overflow:visible; transform-origin:0 0; will-change:transform; }
.a3-v .a3-tr, .a3-v2d .a3-tr{ fill:none; stroke:#BFF6FF; stroke-width:1.3; stroke-linejoin:round; vector-effect:non-scaling-stroke; opacity:.9; }
.a3-v .a3-ch{ opacity:0; }
html.a3-run .a3-contrato:not(.a3-2d) .a3-tr{ animation:a3Apaga .24s .1s both; }
html.a3-run .a3-contrato.a3-2d .a3-ch{ animation:a3Acende .42s .1s both; }
html.a3-run .a3-contrato.a3-2d .a3-tr{ animation:a3Apaga .3s .4s both; }
html.a3-run .a3-contrato.a3-2d .a3-v{ transition:transform .95s var(--a3-ease); filter:drop-shadow(0 16px 28px rgba(0,0,0,.55)); }
.a3-contrato.a3-fecha .a3-tr{ opacity:0; animation:a3AcendeTr .2s .24s both; }
html.a3-sai-painel .a3-contrato.a3-fecha .a3-tr{ stroke-width:1.25; animation-name:a3AcendeTrP; }
.a3-contrato.a3-fecha .a3-ch{ opacity:0; }
.a3-contrato.a3-fecha.a3-2d .a3-ch{ opacity:1; animation:a3Apaga .2s .2s both; }
.a3-contrato.a3-fecha.a3-2d .a3-v{ transition:transform .32s var(--a3-ease); }

/* ══ 6. âncoras: onde o escudo descansa (arte no PC, selo da folha no celular) ══ */
/* a âncora vem do servidor (com o quadro do 3D): sem JS ela não existe na tela */
.a3-ancora{ display:none; }
html.a3 .a3-ancora{ display:block; position:absolute; z-index:2; pointer-events:none; aspect-ratio:25.357/33.347; }
html.a3 .a3-ancora .a3-v2d{ transition:opacity .6s var(--a3-ease); }
html.a3-espera3d .a3-ancora .a3-v2d{ opacity:0 !important; }
/* o quadro do próprio 3D (mp-v3d-hero.webp, enquadramento contain com 10% de folga): é o escudo que "continua" entre as telas */
html.a3 .a3-ancora .a3-foto{ position:absolute; left:-10%; top:-10%; width:120%; height:120%; max-width:none; opacity:0; pointer-events:none; user-select:none; }
html.a3-ponte .a3-ancora .a3-foto{ opacity:1; }
html.a3-ponte .a3-ancora .a3-v2d{ opacity:0 !important; }
html.a3-ponte.a3-ponte-3d .a3-ancora .a3-foto{ opacity:0; transition:opacity .34s var(--a3-ease) .06s; }
html.a3-ponte-sai .a3-ancora .a3-foto{ opacity:1 !important; transition:opacity .2s ease !important; }
html.a3 .a3-ancora .a3-v2d{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; display:block; filter:drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
html.a3.a3-3d .a3-ancora .a3-v2d{ transition:opacity .6s var(--a3-ease); }
.a3-v2d .a3-tr{ opacity:0; }
html.a3.a3-3d .a3-ancora .a3-v2d, html.a3-run:not(.a3-3d) .a3-ancora .a3-v2d, html.a3-in .a3-ancora .a3-v2d{ opacity:0; }
html.a3.a3-3d-tarde .a3-ancora .a3-v2d{ transition:opacity .9s var(--a3-ease) 1.1s; }
/* PC: o escudo paira sobre o horizonte do globo */
html.a3 .a3-heroi{ left:50%; top:37%; width:clamp(150px, 13.5vw, 214px); transform:translate(-50%,-50%); }
html.a3 .a3-selo{ display:none; }
@media (prefers-reduced-motion:no-preference){ html.a3:not(.a3-3d) .a3-heroi .a3-v2d{ animation:a3Flutua 7s ease-in-out infinite; } }
/* o escudo 3D (módulo mp-v3d) mora dentro da âncora: quadrado centrado, folgado para a poeira da materialização;
   o escudo ocupa a altura da âncora (fração da largura do quadrado = 0,4715 — ver TAM_V3D no JS) */
html.a3 .a3-v3d{ position:absolute; left:50%; top:50%; width:calc(100% * 2.121); aspect-ratio:1; transform:translate(-50%,-50%); transform-origin:50% 50%; pointer-events:none; will-change:transform; }
.a3-voo{ position:fixed; inset:0; z-index:2147482000; pointer-events:none; }
.a3-voo-ancora{ position:absolute; }
html.a3-run.a3-v3d-on .a3-contrato:not(.a3-2d) .a3-tr{ animation:a3Apaga .5s .78s both; }
/* sombra de contato sob o escudo (PC) */
html.a3 .a3-heroi::after{ content:""; position:absolute; left:8%; right:8%; bottom:-16%; height:12%; border-radius:50%; z-index:-1;
  background:radial-gradient(closest-side, rgba(0,222,251,.32), rgba(0,94,174,.12) 60%, transparent); filter:blur(8px); opacity:0; transition:opacity 1s var(--a3-ease) .9s; }
html.a3.a3-pronto .a3-heroi::after, html.a3.a3-calmo .a3-heroi::after{ opacity:1; }

/* ══ 7. entrada (a3-run): a luz acende a tela por trás do escudo ══ */
html.a3.a3-run, html.a3.a3-run body.m5a{ animation:a3Fundo 1s .25s both; }
html.a3.a3-run body.m5a::before{ animation:a3Acende 1s .5s both; }
html.a3.a3-run body.m5a .mp-art-img{ animation:a3Foto 1.15s .36s var(--a3-ease) both; }
html.a3.a3-run body.m5a .m5a-art::after{ transform-origin:50% 50%; animation:a3Fio .9s .6s var(--a3-ease) both; }
html.a3.a3-run body.m5a .spa-topo{ animation:a3Acende .7s .8s var(--a3-ease) both; }
html.a3.a3-run body.m5a .spa-selo{ animation:a3Acende .8s 1.15s var(--a3-ease) both; }
html.a3.a3-run body.m5a .m5a-copy > *{ animation:a3Sobe .8s calc(.8s + var(--i, 0) * 80ms) var(--a3-ease) both; }
html.a3.a3-run body.m5a .mp-art-pe{ animation:a3Acende .6s 1.1s both; }
html.a3.a3-run body.m5a .m5a-card:not(.tfa-shake){ animation:a3Card .75s .95s var(--a3-ease) both; }
html.a3.a3-run body.m5a .m5a-card > :not(form):not(#tfa-panel), html.a3.a3-run body.m5a .m5a-card form > *{
  animation:a3Sobe .5s calc(1s + min(var(--i, 0), 8) * 30ms) var(--a3-ease) both;
}

/* ══ 7b. ponte entre as telas de acesso: o escudo fica; cartão e texto da arte trocam ══ */
html.a3-ponte-sai body.m5a :is(.m5a-card, .m5a-copy, .mp-art-pe){ opacity:0 !important; transform:translateY(10px); transition:opacity .22s ease, transform .22s ease !important; }
html.a3-ponte-sai{ cursor:progress; }
html.a3-ponte body.m5a .m5a-card:not(.tfa-shake){ animation:a3Card .62s .02s var(--a3-ease) both; }
html.a3-ponte body.m5a .m5a-card > :not(form):not(#tfa-panel), html.a3-ponte body.m5a .m5a-card form > *{ animation:a3Sobe .5s calc(.08s + min(var(--i, 0), 8) * 28ms) var(--a3-ease) both; }
html.a3-ponte body.m5a .m5a-copy > *{ animation:a3Sobe .6s calc(.06s + var(--i, 0) * 60ms) var(--a3-ease) both; }
html.a3-ponte body.m5a .mp-art-pe{ animation:a3Acende .5s .2s both; }
@media (max-width:991px){ html.a3-ponte body.m5a .m5a-card:not(.tfa-shake){ animation:a3Sobe .5s .02s var(--a3-ease) both; } }

/* ══ 8. saída: o escudo volta ao centro e se apaga no contorno ══ */
html.a3-sai body.m5a :is(.m5a-art > :not(.a3-ancora), .m5a-side), html.a3-sai .toast-container{ opacity:0 !important; transition:opacity .24s var(--a3-ease) !important; }
html.a3-sai body.m5a .m5a-art::after, html.a3-sai body.m5a::before{ opacity:0; transition:opacity .24s var(--a3-ease); }
html.a3-sai .a3-ancora{ opacity:0; transition:opacity .12s; }
html.a3-sai-lp, html.a3-sai-lp body.m5a{ background-color:var(--a3-lp) !important; transition:background-color .3s var(--a3-ease); }
html.a3-sai-painel, html.a3-sai-painel body.m5a{ background-color:#05070C !important; }
html.a3-sai{ cursor:progress; }

/* ══ 9. celular: faixa do topo (logo inteiro abaixo da barra de status) e o escudo como selo da folha ══ */
@media (max-width:991px){
  .m5a-wrap{ grid-template-columns:minmax(0, 1fr); grid-template-rows:auto 1fr; }
  .m5a-art{ min-height:calc(var(--a3-safe-top) + 236px); padding:calc(var(--a3-safe-top) + 22px) 20px 0; border-right:0; }
  .m5a-art::after{ display:none; }
  .mp-art-img::before{ left:-70%; right:-70%; top:-44%; opacity:1; }
  .mp-art-img::after{ background:linear-gradient(180deg, rgba(4,6,11,.82) 0%, rgba(4,6,11,.2) 40%, rgba(4,6,11,.35) 75%, rgba(4,6,11,.9) 100%); }
  .mp-art-img .spa-halo{ top:78%; width:120vw; }
  .m5a-logo img{ height:30px; }
  .m5a-copy, .mp-art-pe, .spa-cartoes, .spa-selo, .spa-lema{ display:none; }
  .m5a-side{ display:flex; flex-direction:column; padding:0; margin-top:-30px; }
  .m5a-panel{ max-width:none; flex:1; display:flex; flex-direction:column; }
  .m5a-panel > .m5a-card{ flex:1; }
  .m5a-card{ border-radius:26px 26px 0 0; min-height:100%; padding:58px 20px calc(32px + var(--a3-safe-bot)); border-bottom:0; border-left:0; border-right:0;
    background:linear-gradient(180deg, rgba(14,18,28,.98), #090C13 40%); }
  .m5a-card :is(.login-title, .register-title){ font-size:25px; text-align:center; }
  .m5a-card :is(.login-title, .register-title)::before{ display:table; margin:0 auto 14px; }
  .m5a-card :is(.login-sub, .register-sub){ text-align:center; margin-left:auto; margin-right:auto; }
  html.a3 .a3-heroi{ display:none; }
  html.a3 .a3-selo{ display:block; left:50%; top:0; width:60px; transform:translate(-50%,-56%); z-index:4; }
  html.a3 .a3-selo::after{ content:""; position:absolute; left:50%; top:62%; width:150%; aspect-ratio:1; transform:translate(-50%,-50%); z-index:-1; border-radius:50%;
    background:radial-gradient(closest-side, rgba(0,222,251,.22), rgba(0,94,174,.1) 55%, transparent); }
  html.a3.a3-run body.m5a .m5a-card:not(.tfa-shake){ animation-name:a3Folha; }
  body.m5a-register .reg-specs{ gap:6px; }
}
@media (max-width:420px){
  .m5a-card{ padding-left:16px; padding-right:16px; }
  body.m5a-login .tfa-inputs{ gap:6px; }
  body.m5a-login .tfa-digit{ width:44px; height:56px; font-size:22px; }
  body.m5a-login .tfa-digit:nth-child(3){ margin-right:6px; }
}
@media (max-width:360px){ body.m5a-login .tfa-digit{ width:40px; height:52px; } }
@media (min-width:992px) and (max-height:760px){
  .m5a-art-p, .spa-selo{ display:none; }
  html.a3 .a3-heroi{ top:34%; width:clamp(120px, 11vw, 170px); }
}

/* ══ 10. movimento reduzido: tudo pronto, escudo parado ══ */
@media (prefers-reduced-motion:reduce){
  html.a3 *, html.a3 *::before, html.a3 *::after{ animation-duration:.001s !important; animation-delay:0s !important; transition-duration:.001s !important; }
  .a3-rot{ transition:none; }
}

@keyframes a3Acende{ from{ opacity:0; } to{ opacity:1; } }
@keyframes a3Garante{ from{ opacity:0; } to{ opacity:1; } }
@keyframes a3Apaga{ from{ opacity:.9; } to{ opacity:0; } }
@keyframes a3AcendeTr{ from{ opacity:0; } to{ opacity:.9; } }
@keyframes a3AcendeTrP{ from{ opacity:0; } to{ opacity:1; } }
@keyframes a3Sobe{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@keyframes a3Card{ from{ opacity:0; transform:translateY(26px) scale(.985); } to{ opacity:1; transform:none; } }
@keyframes a3Folha{ from{ opacity:0; transform:translateY(64px); } to{ opacity:1; transform:none; } }
@keyframes a3Foto{ from{ opacity:0; transform:scale(1.06); } to{ opacity:1; transform:none; } }
@keyframes a3Fio{ from{ transform:scaleY(0); opacity:0; } to{ transform:none; opacity:1; } }
@keyframes a3Fundo{ from{ background-color:#05070C; } to{ background-color:#06080E; } }
@keyframes a3Flutua{ 0%,100%{ transform:translateY(0) rotate(0); } 50%{ transform:translateY(-6px) rotate(-.6deg); } }
@keyframes a3Cursor{ 0%{ background-size:14px 2px; } 50%{ background-size:0 2px; } }
@keyframes a3Verifica{ 0%,100%{ box-shadow:0 0 0 0 rgba(0,222,251,0); } 50%{ box-shadow:0 0 18px 2px rgba(0,222,251,.4); } }
@keyframes a3Pop{ from{ transform:scale(.3); opacity:0; } to{ transform:scale(1); opacity:1; } }
@keyframes a3Nega{ 10%,90%{ transform:translateX(-2px) } 20%,80%{ transform:translateX(5px) } 30%,50%,70%{ transform:translateX(-8px) } 40%,60%{ transform:translateX(8px) } }
@keyframes a3Toast{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:none; } }
@keyframes a3Autofill{ from{ opacity:1; } to{ opacity:1; } }

/* ══ 11. telas irmãs: esqueci a senha, nova senha, 2FA (ativar/desativar) ══ */
body.m5a-forgot .login-title::before{ content:"Recuperar acesso"; }
body.m5a-reset .login-title::before{ content:"Nova senha"; }
.m5a-card .spa-sem-rot::before{ display:none !important; }
.m5a-card .success-box{ display:none; }
.m5a-card :is(.success-box, #success-box, .error-box){ text-align:center; }
.m5a-card :is(.success-box, #success-box, .error-box) :is(.login-sub){ margin-left:auto; margin-right:auto; }
.m5a-card :is(.btn-login, .btn-register) + *{ margin-top:0; }
.m5a-card form .btn-login{ margin-top:8px; }
.spa-res{ display:grid; place-items:center; width:72px; height:72px; margin:4px auto 20px; border-radius:50%; animation:a3Pop .45s cubic-bezier(.34,1.56,.64,1) both; }
.spa-res svg{ width:30px; height:30px; }
.spa-res.ok{ color:var(--a3-claro); background:radial-gradient(circle, rgba(0,224,255,.2), rgba(0,224,255,0) 70%); border:1px solid rgba(0,224,255,.6); box-shadow:0 0 50px -6px rgba(0,224,255,.45); }
.spa-res.err{ color:#FF8A8A; background:rgba(242,100,100,.07); border:1px solid rgba(242,100,100,.55); }
a.spa-btn-link{ display:flex; align-items:center; justify-content:center; text-decoration:none; }
.error-box .btn-create-account{ margin-bottom:4px; }
.spa-voltar{ display:inline-flex; align-items:center; gap:6px; margin:0 0 18px; font-size:13px; color:var(--a3-pedra); text-decoration:none; transition:color .25s; }
.spa-voltar svg{ width:14px; height:14px; } .spa-voltar:hover{ color:var(--a3-texto); }
.status-badge{ display:inline-flex; align-items:center; gap:7px; margin:0 0 18px 10px; padding:5px 12px; border-radius:999px; font:700 11.5px/1 'Sora', 'Inter var', sans-serif; vertical-align:middle; }
.status-badge .dot{ width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 10px currentColor; }
.status-badge.on{ color:var(--a3-ciano); background:rgba(0,224,255,.1); border:1px solid rgba(0,224,255,.35); }
.status-badge.off{ color:#FF8A8A; background:rgba(242,100,100,.08); border:1px solid rgba(242,100,100,.3); }
.spa-alerta{ margin:0 0 18px; padding:12px 16px; border-radius:16px; font-size:13.5px; line-height:1.45; }
.spa-alerta.ok{ color:var(--a3-claro); background:rgba(0,224,255,.08); border:1px solid rgba(0,224,255,.3); }
.spa-alerta.err{ color:#FFB0B0; background:rgba(242,100,100,.08); border:1px solid rgba(242,100,100,.35); }
.m5a-card .login-sub strong, .spa-passos strong{ color:var(--a3-texto); font-weight:600; }
.spa-passos{ list-style:none; margin:0 0 22px; padding:0; display:flex; flex-direction:column; gap:12px; }
.spa-passos li{ display:flex; gap:12px; align-items:flex-start; font-size:13.5px; line-height:1.5; color:var(--a3-pedra); }
.spa-passos b{ flex:none; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; font:700 12px/1 'Sora', sans-serif; color:var(--a3-marinho); background:var(--a3-grad-claro); }
.spa-qr-wrap{ display:flex; justify-content:center; margin:0 0 16px; }
#qrcode{ min-width:200px; min-height:200px; padding:10px; border-radius:22px; background:#fff; box-shadow:0 0 0 1px rgba(0,224,255,.3), 0 18px 40px -16px rgba(0,224,255,.45); line-height:0; }
#qrcode canvas{ display:block; border-radius:12px; }
.secret-box{ padding:13px 16px; border-radius:999px; text-align:center; cursor:pointer; user-select:all; word-break:break-all;
  font:600 14px/1.3 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing:.06em; color:var(--a3-claro);
  background:rgba(0,224,255,.05); border:1px dashed rgba(0,224,255,.4); transition:background-color .3s, border-color .3s; }
.secret-box:hover{ border-color:rgba(0,224,255,.75); }
.secret-label{ margin:8px 0 22px; text-align:center; font-size:12px; color:var(--a3-pedra-2); }
.spa-2fa-form{ padding-top:20px; border-top:1px solid var(--a3-fio-2); }
.spa-2fa-form .form-label{ margin-bottom:10px; }
.spa-2fa-form .input-icon-wrap{ margin-bottom:14px; }
.m5a-card .form-control.spa-codigo{ font-variant-numeric:tabular-nums; letter-spacing:.32em; font-weight:600; }
.spa-nota{ margin:0 0 14px; font-size:13px; color:var(--a3-pedra); }
.m5a-card .spa-btn-perigo{ display:block; width:100%; height:50px; border-radius:999px; border:1px solid rgba(242,100,100,.55); background:rgba(242,100,100,.08);
  font:600 15px/1 'Sora', 'Inter var', sans-serif; color:#FFB0B0; transition:background-color .3s, border-color .3s, color .3s; }
.m5a-card .spa-btn-perigo:hover{ background:rgba(242,100,100,.16); border-color:rgba(242,100,100,.85); color:#fff; }
/* o QR da v1 (qrcode@1.5.4 do jsDelivr) pode não desenhar: sem canvas, a moldura some e fica só a chave manual */
.spa-qr-wrap:has(#qrcode:empty){ display:none; }
/* PC: a arte fica presa enquanto o formulário rola (todas as telas) */
@media (min-width:992px){ body.m5a .m5a-art{ position:sticky; top:0; align-self:start; height:100vh; height:100dvh; } body.m5a .m5a-side{ align-items:flex-start; } body.m5a.m5a-login .m5a-side, body.m5a.m5a-forgot .m5a-side, body.m5a.m5a-reset .m5a-side{ align-items:center; } }
