/* Tela de entrada (aprovada pelo Rubens em 26/09/2026): grade de pinos na tela inteira, sem divisão no meio.
   À esquerda o logo e o que a automa faz; à direita o acesso da Operação Crefaz. O desenho da grade e do sinal está em login.js. */
body:has(.tela-login) { background: #FFFFFF; }
.tela-login { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100dvh;
  font-family: Archivo, "Segoe UI", system-ui, sans-serif; color: #101822; background: #FFFFFF; }
.rede-pinos { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lado-marca, .lado-acesso { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 40px; }

/* logo real, desenhando-se rápido (sem mancha: nada aparece antes dele) */
.logo-vivo { display: inline-flex; align-items: center; gap: 2px; --t: 64px; }
.lv-sim svg { width: calc(var(--t) * 1.5); height: calc(var(--t) * 1.5); display: block;
  filter: drop-shadow(0 8px 12px rgba(27,95,184,.60)) drop-shadow(0 18px 34px rgba(27,95,184,.42)); }   /* sombra por trás do cérebro (Rubens, 26/09/2026) */
.lv-palavra { text-shadow: 0 5px 12px rgba(16,24,34,.28), 0 14px 32px rgba(16,24,34,.18); }   /* sombra mais clara em "automa" */
.lv-ai { box-shadow: 0 6px 14px rgba(27,95,184,.45), 0 14px 30px rgba(27,95,184,.30); }
.lv-sim .tr { stroke-dasharray: 160; stroke-dashoffset: 160; animation: tracar .8s ease-out forwards; }
.lv-sim .pt { opacity: 0; transform-origin: center; transform-box: fill-box; animation: surgir .3s ease-out forwards, pulsar 2.4s ease-in-out 2s infinite; }
.lv-sim .pt:nth-of-type(1) { animation-delay: .55s, 2s; } .lv-sim .pt:nth-of-type(2) { animation-delay: .65s, 2.4s; } .lv-sim .pt:nth-of-type(3) { animation-delay: .75s, 2.8s; }
.lv-palavra { display: inline-flex; font: 700 var(--t)/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; color: #101822; }
.lv-palavra span { opacity: 0; transform: translateY(.25em); animation: letra .3s ease-out forwards; animation-delay: calc(.45s + var(--i) * .06s); }
.lv-ai { font: 500 calc(var(--t) * .32)/1 "IBM Plex Mono", monospace; letter-spacing: .08em; padding: .32em .45em; border-radius: .3em; margin-left: calc(var(--t) * .16);
  color: #FFFFFF; background: #1B5FB8; position: relative; top: calc(var(--t) * .06); opacity: 0; transform: scale(.3); animation: chip .4s cubic-bezier(.2,.9,.25,1.3) 1s forwards; }
@keyframes tracar { to { stroke-dashoffset: 0; } }
@keyframes surgir { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes pulsar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes letra { to { opacity: 1; transform: none; } }
@keyframes chip { to { opacity: 1; transform: scale(1); } }

/* o que a automa faz: grade parada; um item por vez acende (login.js) */
.lista-faz { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; width: min(100%, 560px); }
.faz { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 12px; background: #FFFFFF; border: 1px solid #E1EAF4;
  box-shadow: 0 1px 2px rgba(16,24,34,.04); opacity: 0; transform: translateY(6px); animation: letra .45s ease-out forwards; animation-delay: calc(1.2s + var(--k, 0) * .06s);
  transition: border-color .5s, box-shadow .5s; }
.faz-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; color: #1B5FB8; background: #EAF3FE; transition: background .5s, color .5s; }
.faz-ic svg { width: 18px; height: 18px; }
.faz-txt { display: flex; flex-direction: column; min-width: 0; }
.faz-txt b { font: 600 14.5px/1.2 "Space Grotesk", Archivo, sans-serif; letter-spacing: -.01em; }
.faz-txt small { font-size: 12.5px; line-height: 1.3; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faz.on { border-color: rgba(27,95,184,.45); box-shadow: 0 6px 20px rgba(27,95,184,.12); }
.faz.on .faz-ic { color: #FFFFFF; background: linear-gradient(140deg, #4DA3FF, #1B5FB8); }

/* acesso: só a Operação Crefaz */
.cartao-login { display: flex; flex-direction: column; width: min(100%, 400px); padding: 32px 30px 30px; border-radius: 18px; background: rgba(255,255,255,.94);
  border: 1px solid #E1EAF4; box-shadow: 0 24px 60px rgba(16,24,34,.08); transition: box-shadow .5s ease, border-color .5s ease; }
.cartao-login.recebe { border-color: rgba(77,163,255,.65); box-shadow: 0 0 0 3px rgba(77,163,255,.14), 0 24px 60px rgba(27,95,184,.16); }
.operacao { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px 16px; border-radius: 12px; border: 1px solid #D2E0EF;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF4FB 100%); box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(16,24,34,.06); }
.operacao small { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #263659; opacity: .75; line-height: 1; }
.operacao img { display: block; height: 34px; width: auto; }
.subt { margin: 18px 0 4px; text-align: center; font-size: 14px; color: #5B7790; }
.cartao-login label { display: grid; gap: 7px; margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #5B7790; }
.cartao-login input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #D8E1EA; border-radius: 11px; background: #FFFFFF; color: #0B1620;
  font: 500 14px Archivo, sans-serif; outline: none; box-sizing: border-box; }
.cartao-login input::placeholder { color: #8AA0B4; }
.cartao-login input:focus { border-color: #1B5FB8; box-shadow: 0 0 0 3px #E1EEFC; }
.cartao-login button { min-height: 44px; margin-top: 22px; border: 0; border-radius: 11px; color: #FFFFFF; font: 700 14px Archivo, sans-serif; cursor: pointer;
  background: linear-gradient(140deg, #4DA3FF 0%, #1B5FB8 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.cartao-login button:hover { filter: brightness(1.06); }
.cartao-login button:focus-visible { outline: 2px solid #1B5FB8; outline-offset: 3px; }
.erro-login { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #E9B9B2; border-radius: 10px; background: #FFF3F1; color: #9C2F20; font-size: 13px; text-align: center; }
.aviso-login { margin: 14px 0 0; font-size: 13px; color: #5B7790; text-align: center; }

@media (max-width: 1200px) { .faz-txt small { display: none; } .lista-faz { gap: 8px 10px; } }
/* celular: o logo da automa fica em cima do login (é a marca principal); só a lista do que ela faz sai */
@media (max-width: 900px) {
  .tela-login { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; }
  .lado-marca { padding: 24px 16px 4px; }
  .lado-marca .logo-vivo { --t: clamp(40px, 12.8vw, 60px); }       /* automa é a marca principal: maior que a Crefaz */
  .operacao { flex-direction: row; justify-content: center; gap: 10px; padding: 10px 14px; }
  .operacao small { font-size: 9.5px; }
  .operacao img { height: 20px; }
  .lista-faz { display: none; }
  .lado-acesso { justify-content: flex-start; padding: 20px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-sim .tr { stroke-dashoffset: 0; animation: none; } .lv-sim .pt, .lv-palavra span, .lv-ai, .faz { opacity: 1; transform: none; animation: none; } }
