/* Tela de login: fundo tecnológico animado */
.acesso {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #1F4FD6 0%, rgba(31, 79, 214, 0) 70%),
    linear-gradient(180deg, #06123A 0%, #0A1D5C 55%, #071442 100%);
  color: #FFFFFF;
}

#circuito { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Brilho circular atrás do cartão */
.acesso::before {
  content: "";
  position: absolute;
  width: min(720px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(110, 190, 255, 0.28);
  box-shadow: 0 0 60px rgba(60, 150, 255, 0.35), inset 0 0 80px rgba(60, 150, 255, 0.18);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Ondas na base */
.ondas { position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; min-height: 180px; pointer-events: none; }
.ondas svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.ondas .o1 { animation: deslizar 26s linear infinite; }
.ondas .o2 { animation: deslizar 38s linear infinite reverse; opacity: 0.8; }
.ondas .o3 { animation: deslizar 52s linear infinite; opacity: 0.6; }
@keyframes deslizar { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Cartão de vidro */
.acesso-cartao {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: 20px;
  background: rgba(8, 22, 66, 0.62);
  border: 1px solid rgba(120, 180, 255, 0.32);
  box-shadow: 0 20px 60px rgba(2, 8, 30, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.acesso-marca { margin: 0 0 4px; display: flex; justify-content: center; }
.acesso-marca img { display: block; width: 310px; max-width: 92%; height: auto; filter: drop-shadow(0 0 18px rgba(255, 196, 40, 0.25)); }
.acesso-aprova {
  position: absolute; z-index: 2; right: 32px; bottom: 26px;
  width: 170px; max-width: 40vw; height: auto; opacity: 0.95;
}
@media (max-width: 480px) { .acesso-aprova { right: 50%; transform: translateX(50%); bottom: 18px; width: 140px; } }

.acesso-cartao label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: #D6E2FB; }
.acesso-cartao input {
  height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(140, 185, 255, 0.35);
  background: rgba(3, 12, 40, 0.55);
  color: #FFFFFF; font: inherit; font-size: 16px;
}
.acesso-cartao input:focus { outline: none; border-color: #FCDB19; box-shadow: 0 0 0 3px rgba(252, 219, 25, 0.35); }
.acesso-cartao input:-webkit-autofill {
  -webkit-text-fill-color: #FFFFFF;
  -webkit-box-shadow: 0 0 0 40px #0B1A48 inset;
  caret-color: #FFFFFF;
}
.acesso-cartao button {
  height: 50px; border: 0; border-radius: 12px; margin-top: 4px;
  background: #FCDB19; color: #12284A; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
}
.acesso-cartao button:hover { background: #FFE54D; }
.acesso-cartao button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.acesso-erro { padding: 12px 14px; border-radius: 10px; background: rgba(161, 42, 27, 0.35); border: 1px solid rgba(255, 140, 120, 0.5); color: #FFE1DA; font-weight: 600; }

@media (max-width: 480px) { .acesso-cartao { padding: 32px 22px; } }

@media (prefers-reduced-motion: reduce) {
  .ondas .o1, .ondas .o2, .ondas .o3 { animation: none; }
}
