:root { --circuito: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='rgb(79,180,236)' stroke-opacity='.13' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 46h58l22 22h82l22-22h36'/%3E%3Cpath d='M80 68v44l18 18h50'/%3E%3Ccircle cx='148' cy='130' r='4'/%3E%3Cpath d='M0 160h34l20-20h6'/%3E%3Ccircle cx='64' cy='140' r='4'/%3E%3Cpath d='M120 0v24l-14 14'/%3E%3Ccircle cx='103' cy='41' r='4'/%3E%3Cpath d='M190 220v-34l-22-22h-10'/%3E%3Ccircle cx='154' cy='164' r='4'/%3E%3Cpath d='M30 220v-28l16-16h40l14 14v30'/%3E%3Cpath d='M200 46v40l20 20'/%3E%3Crect x='170' y='96' width='14' height='22' rx='2'/%3E%3Cpath d='M177 118v20'/%3E%3C/g%3E%3Cg fill='rgb(79,180,236)' fill-opacity='.22'%3E%3Ccircle cx='58' cy='46' r='2'/%3E%3Ccircle cx='162' cy='68' r='2'/%3E%3Ccircle cx='80' cy='112' r='2'/%3E%3Ccircle cx='34' cy='160' r='2'/%3E%3Ccircle cx='86' cy='176' r='2'/%3E%3C/g%3E%3C/svg%3E"); }

/* PROTÓTIPO do login v2 — por cima do login.css */
:root { --campo-borda: #52748D; --ph: #8AA1B4; --papel: #F3F7FA; --ok: #4ADE80; }

/* fundo: o mesmo circuito da página de vendas no lugar da rede de pontos em canvas (que roda sem parar) */
#plexo, .particle { display: none !important; }
body { background: var(--navy); }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(640px 520px at 78% 48%, rgba(30,155,224,.20), transparent 70%), var(--circuito);
  background-size: auto, 220px 220px; }
body::after { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--circuito); background-size: 220px 220px; filter: brightness(3.4) saturate(1.9);
  -webkit-mask-image: radial-gradient(230px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%); mask-image: radial-gradient(230px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%); }
.brand { background: linear-gradient(180deg, rgba(12,29,45,.78), rgba(10,23,36,.55)); backdrop-filter: blur(2px); }

/* lado da marca: o produto trabalhando, em vez do símbolo gigante */
.brand-top a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; border-radius: 8px; }
.sym-grande { display: none; }
.prova { display: grid; gap: 12px; max-width: 400px; margin-bottom: 6px; }
.prova-os { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 60px -34px rgba(0,0,0,.7); font-size: 14px; }
.prova-os small { color: var(--text-faint); font-size: 13px; }
.prova-os b { color: var(--white); font-weight: 500; display: block; }
.prova-os span.st { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(251,191,36,.45); color: var(--warn); white-space: nowrap; transition: color .4s, border-color .4s; }
.prova-os.ok span.st { color: var(--blue-txt); border-color: rgba(79,180,236,.45); }
.prova-zap { display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 12px; background: #fff; color: #0A1724; width: fit-content; font-size: 12.5px; line-height: 1.35; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.prova-zap i { width: 30px; height: 30px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.prova-zap i svg { width: 16px; height: 16px; }
.prova-zap b { display: block; font-weight: 600; font-size: 13px; }
.prova-aviso { padding: 11px 14px; border-radius: 10px; background: var(--panel-2, #0C1D2D); border: 1px solid rgba(74,222,128,.35); font-size: 13px; color: var(--text); width: fit-content; }
.prova-aviso b { color: var(--ok); font-weight: 500; }

/* formulário em um cartão, para ser o foco da tela */
.login-card { padding: 34px 32px 26px; border-radius: 20px; background: rgba(15,34,51,.78); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.75); backdrop-filter: blur(6px); max-width: 440px; }
.login-card h2 { font-size: 28px; }
.campo input { border-color: var(--campo-borda); background: #0B1B2A; transition: border-color .2s, box-shadow .2s, background .2s; }
.campo input::placeholder { color: var(--ph); }
.campo input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255,107,118,.18); }
.campo .dica { font-size: 13px; color: var(--error); min-height: 0; display: none; }
.campo .dica.show { display: block; }
.avisa-caps { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--warn); }
.avisa-caps.on { display: flex; }
.remember { color: var(--text); }
.forgot { display: inline-flex; align-items: center; min-height: 32px; }

.btn-login { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 24px -12px rgba(30,155,224,.7); }
.btn-login .gira { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(6,18,29,.3); border-top-color: #06121D; animation: gira .7s linear infinite; display: none; }
.btn-login.carregando .gira { display: block; }
.btn-login.carregando { cursor: wait; filter: brightness(.95); }
@keyframes gira { to { transform: rotate(360deg); } }

/* mensagens: erro em vermelho, orientação em azul (hoje o "esqueceu a senha" aparece como erro) */
.login-error { text-align: left; display: none; gap: 10px; align-items: flex-start; }
.login-error.show { display: flex; }
.login-error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.login-info { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: rgba(79,180,236,.1); border: 1px solid rgba(79,180,236,.35); color: var(--text); font-size: 14px; line-height: 1.5; }
.login-info.show { display: flex; }
.login-info svg { width: 18px; height: 18px; flex: none; margin-top: 2px; stroke: var(--blue-txt); }
.login-info a { color: var(--blue-txt); }

/* cadastro como botão secundário em vez de link pequeno */
.card-cad { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 10px; border: 1px solid var(--campo-borda); color: var(--white); text-decoration: none; font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s; }
.card-cad:hover { border-color: var(--blue); background: rgba(30,155,224,.08); }
.card-cad small { color: var(--blue-txt); font-size: 13px; font-weight: 400; }
.card-footer { border-top: 0; padding-top: 4px; }
.card-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--text-dim) !important; }
.brand-foot { color: var(--text-dim); }

/* entrada */
@keyframes sobe { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .92; translate: 0 10px; } to { opacity: 1; scale: 1; translate: 0 0; } }
.entra .brand-top, .entra .brand-main h1, .entra .brand-main > p, .entra .login-card { animation: sobe .6s cubic-bezier(.2,.8,.2,1) backwards; }
.entra .brand-main h1 { animation-delay: .1s; } .entra .brand-main > p { animation-delay: .2s; } .entra .login-card { animation-delay: .15s; }
.entra .prova-os { animation: pop .5s ease backwards .5s; }
.entra .prova-zap { animation: pop .45s ease backwards 1.3s; }
.entra .prova-aviso { animation: pop .45s ease backwards; }
.treme { animation: treme .3s ease; }
@keyframes treme { 20% { translate: 7px 0; } 40% { translate: -6px 0; } 60% { translate: 4px 0; } 80% { translate: -2px 0; } }

@media (max-width: 960px) {
  .prova { display: none; }
  .brand { padding: 22px 20px 6px; border-bottom: 0; background: none; backdrop-filter: none; }
  .brand-main { display: none; }
  .right { padding: 8px 16px 40px; align-items: flex-start; }
  .login-card { padding: 26px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .entra * { animation: none !important; } .treme { animation: none; } }

/* o botão de cadastro não pode quebrar mal em tela estreita */
.card-cad { flex-wrap: wrap; text-align: center; padding: 10px 14px; column-gap: 8px; row-gap: 0; }
@media (max-width: 480px) { .card-cad { flex-direction: column; gap: 2px; } }

@keyframes corre { from { stroke-dashoffset: 286; } to { stroke-dashoffset: 0; } }
@keyframes bate { 50% { box-shadow: 0 0 0 7px rgba(30,155,224,0); } }
/* D — A + C: o símbolo é o centro do circuito e a OS acende etapa por etapa */
.op-d { position: relative; display: grid; grid-template-columns: 150px 66px 236px; align-items: center; width: max-content; margin: 0 0 56px -4px; }
.op-d-selo { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #11314a, #0C1D2D 70%); border: 1px solid rgba(79,180,236,.4);
  box-shadow: 0 0 0 8px rgba(30,155,224,.07), 0 0 60px rgba(30,155,224,.3), 0 30px 60px -30px rgba(0,0,0,.8); position: relative; z-index: 2; }
.op-d-selo .sym-op { width: 74px; height: 74px; }
.op-d-trilha { width: 66px; height: 150px; overflow: visible; margin-left: -1px; }
.op-d-trilha .base path { stroke: rgba(79,180,236,.32); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.op-d-trilha .pulso path { stroke: #7fd0ff; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-dasharray: 18 220; animation: corre 1.4s linear infinite; filter: drop-shadow(0 0 4px rgba(127,208,255,.9)); }
.op-d-trilha .pulso path:nth-child(2) { animation-delay: -.5s; } .op-d-trilha .pulso path:nth-child(3) { animation-delay: -.9s; }
.op-d-card { background: rgba(15,34,51,.92); border: 1px solid rgba(79,180,236,.28); border-radius: 18px; padding: 16px 18px 18px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.85); }
.op-d-topo { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #fff; } .op-d-topo span { color: var(--text-faint); font-size: 12.5px; }
.op-d-ap { color: var(--text-dim); font-size: 13px; margin: 2px 0 14px; }
.op-d ol { list-style: none; display: grid; gap: 13px; position: relative; padding-left: 24px; }
.op-d ol::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: #25435a; }
.op-d li { position: relative; font-size: 13.5px; line-height: 1.25; color: #6F8799; transition: color .4s; }
.op-d li b { display: block; font-weight: 500; } .op-d li span { font-size: 12px; opacity: 0; transition: opacity .4s; display: block; color: var(--text-dim); }
.op-d li::before { content: ''; position: absolute; left: -24px; top: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3b5a70; background: #0F2233; transition: background .4s, border-color .4s, box-shadow .4s; }
.op-d li.f, .op-d li.a { color: #fff; } .op-d li.f span, .op-d li.a span { opacity: 1; }
.op-d li.f::before { background: #1E9BE0; border-color: #1E9BE0; }
.op-d li.v::before { background: #16a34a; border-color: #16a34a; }
.op-d li.a::before { background: #0F2233; border-color: #4FB4EC; box-shadow: 0 0 0 4px rgba(30,155,224,.25); animation: bate 1.4s ease-in-out infinite; }
.op-d li.fim::before { background: #16a34a; border-color: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); animation: none; }
.op-d li.fim b { color: #4ADE80; }
.op-d-zap { position: absolute; right: 0; bottom: -52px; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 12px; background: #fff; color: #0A1724; font-size: 12.5px; line-height: 1.35; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); opacity: 0; translate: 0 10px; transition: opacity .4s, translate .4s; }
.op-d-zap.on { opacity: 1; translate: 0 0; }
.op-d-zap i { width: 30px; height: 30px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; } .op-d-zap i svg { width: 16px; height: 16px; }
.op-d-zap b { display: block; font-weight: 600; font-size: 13px; }
.entra .op-d-selo, .entra .op-d-card { animation: pop .6s ease backwards .4s; }
@media (max-width: 960px) { .op-d { display: none; } }
@media (prefers-reduced-motion: reduce) { .op-d-trilha .pulso path, .op-d li.a::before { animation: none; } }

/* verificação "não sou um robô" (só aparece quando o servidor pede) */
.login-turnstile { display: flex; justify-content: center; min-height: 65px; margin: 4px 0 2px; }
.login-turnstile[hidden] { display: none; }
