/* ============================
   ESTILO ERA DOS GAMES - LOGIN
   Fundo elétrico, raios e neon
===============================*/

/* Fundo geral */
body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at center, #000 65%, #060606);
  color: #fff;
  font-family: 'Orbitron', Arial, sans-serif;
  overflow: hidden;
}

/* Animações de relâmpagos */
.lightning, .bolt {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}
.bolt {
  position: absolute;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, #00ffff, transparent);
  left: var(--x);
  animation: flash var(--d) infinite;
  animation-delay: var(--delay);
  opacity: 0.8;
}
@keyframes flash {
  0%, 95% { opacity: 0; }
  96%, 100% { opacity: 1; }
}

/* Faíscas elétricas (partículas rápidas) */
.spark {
  position: fixed;
  background: radial-gradient(circle, #ff003c, #00ffff00);
  border-radius: 50%;
  width: 3px;
  height: 3px;
  animation: sparkMove 2s infinite ease-in-out;
}
@keyframes sparkMove {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(100vw * (random() - 0.5)), calc(100vh * (random() - 0.5))) scale(0);
    opacity: 0;
  }
}

/* Container principal */
.container {
  position: relative;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  padding: 40px 30px;
  border: 2px solid #ff003c;
  border-radius: 12px;
  width: 320px;
  margin: 10vh auto;
  text-align: center;
  box-shadow: 0 0 20px #00ffff80, 0 0 40px #ff003c60;
  backdrop-filter: blur(3px);
}

/* Logo */
.logo-wrap img {
  width: 150px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px #00ffff);
}

/* Título e texto */
h1 {
  font-size: 28px;
  margin: 0 0 10px;
  text-shadow: 0 0 8px #ff003c, 0 0 20px #00ffff;
}
.muted {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Campos de texto */
input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ff003c;
  border-radius: 5px;
  background: rgba(20,20,20,0.8);
  color: #fff;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 0 5px #ff003c;
}
input:focus {
  border-color: #00ffff;
  box-shadow: 0 0 8px #00ffff, inset 0 0 5px #00ffff;
}

/* Botão principal */
button.primary {
  background: linear-gradient(90deg, #ff003c, #00ffff);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 20px #00ffff80, 0 0 40px #ff003c60;
  transition: 0.3s;
}
button.primary:hover {
  box-shadow: 0 0 40px #ff003c, 0 0 60px #00ffff;
  transform: scale(1.07);
}

/* Links */
a.link {
  color: #00ffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}
a.link:hover {
  text-shadow: 0 0 5px #00ffff, 0 0 10px #ff003c;
}

/* Rodapé */
footer {
  margin-top: 20px;
  font-size: 12px;
  color: #888;
  text-shadow: 0 0 5px #00ffff;
}

/* Ajustes responsivos */
@media (max-width: 400px) {
  .container {
    width: 85%;
    padding: 25px 15px;
  }
  h1 { font-size: 22px; }
}