body {
  background: radial-gradient(circle at top, #000010, #000);
  font-family: 'Poppins', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* ==== CONTENEDOR ==== */
.login-container {
  background: rgba(255,255,255,0.08);
  border: 2px solid #00ffff;
  border-radius: 20px;
  box-shadow: 0 0 25px #00ffff, 0 0 50px #ff00ff;
  padding: 40px 50px;
  text-align: center;
  width: 380px;
  animation: fadeIn 1.5s ease-in-out;
}

/* ==== LOGO ==== */
.logo {
  margin-bottom: 25px;
  animation: float 4s ease-in-out infinite;
}

.logo-img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 15px #00ffff);
}

.logo-text {
  font-size: 36px;
  letter-spacing: 3px;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff, 0 0 40px #ff00ff;
  animation: escribir 2s steps(25) 1;
}

.subtext {
  font-size: 14px;
  color: #ccc;
  font-style: italic;
}

/* ==== FORMULARIO ==== */
input {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px 0;
  border-radius: 8px;
  border: none;
  text-align: center;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  border: none;
  border-radius: 25px;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px #00ffff;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px #ff00ff;
}

/* ==== MENSAJES ==== */
.mensaje {
  margin-top: 15px;
  font-size: 16px;
  transition: opacity 0.5s ease-in-out;
}

.exito {
  color: #39ff14;
  text-shadow: 0 0 15px #39ff14, 0 0 25px #00ffff;
  animation: escribir 2s steps(25) 1;
}

/* ==== ANIMACIÓN DE CARGA ==== */
.loading-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: radial-gradient(circle at center, #000015, #000);
  animation: fadeIn 1s ease-in-out;
}

.spinner {
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top: 6px solid #00ffff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 1s linear infinite, neonGlow 1.5s infinite alternate;
  box-shadow: 0 0 25px #00ffff;
}

.loading-screen p {
  margin-top: 20px;
  color: #00ffff;
  text-shadow: 0 0 15px #ff00ff;
  font-size: 18px;
  animation: escribir 3s steps(40);
}


/* ==== ANIMACIONES ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes escribir {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes neonGlow {
  0% { box-shadow: 0 0 10px #00ffff; }
  100% { box-shadow: 0 0 25px #ff00ff; }
}