/* Tela de entrada: fundo "aurora" com grade de livro contábil em perspectiva e etiquetas flutuando; cartão de vidro por cima */
body.entrada { margin: 0; min-height: 100vh; overflow: hidden; background: #050b1a; font-family: "Segoe UI", Arial, sans-serif; }

.cena { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
/* luzes da aurora: manchas grandes e desfocadas que se movem devagar */
.cena .luz { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; animation: flutuar 26s ease-in-out infinite alternate; }
.cena .l1 { background: #2563eb; top: -25vmax; left: -15vmax; }
.cena .l2 { background: #06b6d4; bottom: -30vmax; right: -10vmax; animation-duration: 32s; animation-delay: -8s; }
.cena .l3 { background: #10b981; top: 20%; left: 45%; width: 40vmax; height: 40vmax; opacity: .35; animation-duration: 38s; animation-delay: -15s; }
.cena .l4 { background: #8b5cf6; bottom: -10vmax; left: -10vmax; width: 45vmax; height: 45vmax; opacity: .4; animation-duration: 30s; animation-delay: -4s; }
@keyframes flutuar { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vmax, 5vmax) scale(1.15); } 100% { transform: translate(-6vmax, 9vmax) scale(.9); } }

/* grade de livro contábil "no chão", em perspectiva, andando para a frente */
.cena .chao { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 65%; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(125, 211, 252, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, .28) 1px, transparent 1px);
  background-size: 64px 64px; animation: andar 6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 85%); mask-image: linear-gradient(to top, #000 15%, transparent 85%); }
@keyframes andar { from { background-position: 0 0; } to { background-position: 0 64px; } }

/* brilho fino no horizonte */
.cena .horizonte { position: absolute; left: 0; right: 0; top: 52%; height: 2px; background: linear-gradient(90deg, transparent, rgba(103, 232, 249, .8), transparent); filter: blur(1px); opacity: .7; }

/* etiquetas que sobem devagar (números de escritório) */
.cena .etq { position: absolute; padding: 7px 12px; border-radius: 999px; font: 600 12px/1 "Segoe UI", Arial, sans-serif; color: #e0f2fe; white-space: nowrap;
  background: rgba(15, 23, 42, .45); border: 1px solid rgba(125, 211, 252, .35); box-shadow: 0 0 18px rgba(56, 189, 248, .25); backdrop-filter: blur(4px);
  animation: subir 18s linear infinite; opacity: 0; }
.cena .etq b { color: #6ee7b7; font-weight: 700; }
.cena .etq:nth-child(odd) b { color: #fcd34d; }
@keyframes subir { 0% { transform: translateY(30px); opacity: 0; } 12% { opacity: .95; } 85% { opacity: .95; } 100% { transform: translateY(-140px); opacity: 0; } }

/* cartão de vidro claro (espelho): quase transparente, pouco desfoque, reflexo na diagonal; textos claros por cima */
.cartao-login { position: relative; z-index: 1; width: 400px; max-width: calc(100vw - 24px); padding: 30px 32px 26px; border-radius: 18px; color: #f8fafc; font: 13px/1.4 "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); backdrop-filter: blur(3px) saturate(150%); -webkit-backdrop-filter: blur(3px) saturate(150%);
  box-shadow: 0 45px 100px rgba(0, 0, 0, .65), 0 18px 40px rgba(2, 6, 23, .55), 0 0 45px rgba(37, 99, 235, .28), 0 0 90px rgba(6, 182, 212, .18),
    inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -18px 40px rgba(2, 6, 23, .25), inset 0 0 22px rgba(0, 0, 0, .25); overflow: hidden; }
/* reflexo do espelho: faixa clara passando na diagonal, bem devagar */
.cartao-login::after { content: ""; position: absolute; top: -60%; left: -80%; width: 60%; height: 220%; transform: rotate(25deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); animation: reflexo 9s ease-in-out infinite; }
@keyframes reflexo { 0%, 60% { left: -80%; } 100% { left: 140%; } }
/* contorno de vidro na cor da página (azul-claro translúcido, mais forte em cima como luz batendo) */
.cartao-login::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 18px; padding: 1.5px;
  background: linear-gradient(160deg, rgba(191, 219, 254, .55), rgba(147, 197, 253, .15) 45%, rgba(103, 232, 249, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* animação do cartão: surge subindo e entrando em foco; depois flutua devagar */
.cartao-login { animation: surgir .9s cubic-bezier(.2, .8, .2, 1) both, pairar 7s ease-in-out 1s infinite; }
@keyframes surgir { from { opacity: 0; transform: translateY(40px) scale(.94); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pairar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.cartao-login .topo-login { text-align: center; margin-bottom: 20px; }
.cartao-login .topo-login svg { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.cartao-login .topo-login b { display: block; margin-top: 8px; font-size: 26px; letter-spacing: .3px;
  background: linear-gradient(90deg, #a5f3fc, #ffffff, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.cartao-login .topo-login span { color: #e2e8f0; font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.cartao-login label { display: block; margin: 12px 0 5px; color: #f1f5f9; font-weight: 600; font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
html body.entrada .cartao-login input:not([type=checkbox]):not([type=radio]) { /* vence a regra geral dos campos (estilo Windows, 21px) */
  width: 100%; height: 42px; padding: 0 12px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px;
  background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 14px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); transition: border-color .15s, box-shadow .15s, background .15s; }
html body.entrada .cartao-login input:not([type=checkbox]):focus { outline: none; background: rgba(255, 255, 255, .24); border-color: #67e8f9; box-shadow: 0 0 0 4px rgba(103, 232, 249, .25); }
html body.entrada .cartao-login input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; } /* o preenchimento automático do Chrome não pinta de amarelo */
.cartao-login .manter { display: flex; align-items: center; gap: 6px; margin: 14px 0 18px; font-weight: 400; color: #f1f5f9; }
.cartao-login button[type=submit] { position: relative; z-index: 1; width: 100%; height: 44px; border: 0; border-radius: 10px; cursor: pointer; color: #fff; font: 700 15px "Segoe UI", Arial, sans-serif; letter-spacing: .3px;
  background: linear-gradient(90deg, #1d4ed8, #0891b2, #059669); background-size: 200% 100%; box-shadow: 0 10px 24px rgba(8, 145, 178, .4); transition: background-position .4s, transform .1s; }
.cartao-login button[type=submit]:hover { background-position: 100% 0; }
.cartao-login button[type=submit]:active { transform: translateY(1px); }
.cartao-login button[type=submit]:focus-visible { outline: 3px solid #67e8f9; outline-offset: 2px; }
.cartao-login .erro-login { margin-top: 12px; padding: 8px 10px; border: 1px solid #f0b8b3; border-left: 4px solid #b42318; background: rgba(255, 255, 255, .92); color: #b42318; border-radius: 6px; }

/* computador com "reduzir movimento" (Windows com animações desligadas): em vez de parar tudo, deixa mais lento e com menos deslocamento */
@media (prefers-reduced-motion: reduce) {
  .cena .luz { animation-duration: 60s; }
  .cena .chao { animation-duration: 14s; }
  .cena .etq { animation-duration: 30s; }
  .cartao-login { animation: surgir 1.2s ease-out both, pairar-suave 10s ease-in-out 1.2s infinite; }
  .cartao-login::after { animation-duration: 14s; }
}
@keyframes pairar-suave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 600px) { .cena .etq { display: none; } }
