/* =====================================================
   login.css – Estilos para página de Iniciar Sesión
   Neón animado, centrado y responsive para todos dispositivos
   ===================================================== */

/* Fondo y centrar tarjeta */
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: url("../img_fondo/fondo.png") no-repeat center center fixed;
  background-size: cover;
  color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Tarjeta principal */
.container {
  position: relative;
  background: rgba(10, 10, 30, 0.9);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  width: 360px;
  max-width: 90%;
  overflow: hidden;
}
.container::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(60deg, #39ff14, #ff073a, #00ffff, #f0f);
  background-size: 400% 400%;
  filter: blur(8px);
  z-index: -1;
  animation: neon 8s ease infinite;
}
@keyframes neon {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Encabezado */
.container h2 {
  margin-bottom: 30px;
  text-align: center;
  color: #fff;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

/* Formulario */
.container form {
  display: flex;
  flex-direction: column;
}
.container form input {
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #39ff14;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  transition: box-shadow 0.3s, border-color 0.3s;
  width: 100%;
}
.container form input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}
.container form button {
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #800080, #4B0082);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  width: 100%;
}
.container form button:hover {
  background: linear-gradient(135deg, #4B0082, #800080);
  transform: translateY(-2px);
}
.container form button:active {
  transform: scale(0.98);
}

/* Enlaces */
.container a {
  display: block;
  text-align: center;
  margin: 10px 0;
  font-size: 0.9rem;
  color: #39ff14;
  text-decoration: none;
  font-weight: 600;
}
.container a:hover {
  text-decoration: underline;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .container {
    width: 95%;      /* Tarjeta más ancha en móviles/tablets */
    padding: 30px;
  }
  .container h2 {
    font-size: 2rem;
    margin-bottom: 25px;
  }
  .container form input,
  .container form button {
    font-size: 1rem;
    padding: 14px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 25px;
  }
  .container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .container form input,
  .container form button {
    font-size: 0.95rem;
    padding: 12px;
  }
}
