
/* ======== RESET ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #325cb0, #2a4d97);
  color: #e4e4e4;
}

/* ======== BACKGROUND PARTICLES ======== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: linear-gradient(120deg, #2c3e75, #1e2c54, #17213d);
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 8s infinite ease-in-out;
}
@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.3); }
  100% { transform: translateY(0) scale(1); }
}

/* ======== LOGIN BOX ======== */
.login-box {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.08);
  padding: 40px 50px;
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 350px;
  width: 100%;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}
/* ======== LOGO MEJORADO ======== */
.login-box .logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}
.login-box .logo-wrapper img {
  width: 220px;  /* ancho mayor */
  height: auto;  /* mantiene proporción original */
  max-height: 150px; /* limita que no crezca demasiado en pantallas pequeñas */
  object-fit: contain;
  border-radius: 20px;
  border: 4px solid #e4e4e4;
  box-shadow: 0 0 25px rgba(50, 92, 176, 0.7), 0 0 60px rgba(195, 195, 197, 0.4);
  animation: floatLogo 5s ease-in-out infinite;
  background-color: #e4e4e4;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Brillo dinámico detrás del logo */
.logo-wrapper::after {
  content: '';
  position: absolute;
  width: 240px;   /* más ancho */
  height: 160px;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(50,92,176,0.4), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  animation: glowPulse 3s infinite ease-in-out;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}


/* ======== EFECTOS WOW LOGIN ======== */
.neon-glow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(227, 227, 227, 0.2);
  background: linear-gradient(135deg, rgba(227, 227, 227, 0.12), rgba(195, 195, 197, 0.05));
  box-shadow: 0 0 25px rgba(50, 92, 176, 0.35);
  transition: all 0.4s ease;
}
.neon-glow:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(50, 92, 176, 0.45), 0 0 60px rgba(50, 92, 176, 0.25);
}

.neon-glow h2 {
  font-size: 1.5rem;
  color: #e4e4e4;
  text-shadow: 0 0 8px rgba(195, 195, 197, 0.5);
  margin-bottom: 10px;
}
.subtitle {
  font-size: 0.9rem;
  color: #c3c3c5;
  margin-bottom: 25px;
}


/* ======== BOTÓN EFECTO PULSO ======== */
.pulse-btn {
  background: linear-gradient(90deg, #325cb0, #2a4d97);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 16px 0;
  width: 100%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 15px #325cb0, 0 0 30px #2a4d97 inset;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 15px #325cb0, 0 0 30px #2a4d97 inset; }
  50% { box-shadow: 0 0 25px #4b7cf2, 0 0 45px #4b7cf2 inset; }
  100% { box-shadow: 0 0 15px #325cb0, 0 0 30px #2a4d97 inset; }
}
.pulse-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(90deg, #4b7cf2, #325cb0);
}


/* ======== LUCES FLOTANTES ======== */
.light-orb {
  position: absolute;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(50, 92, 176, 0.25), transparent 70%);
  top: -40px; left: -40px;
  animation: floatOrb 6s infinite ease-in-out;
  pointer-events: none;
}
.light-orb.second {
  width: 120px; height: 120px;
  top: auto; bottom: -50px; right: -50px;
  background: radial-gradient(circle, rgba(227, 227, 227, 0.25), transparent 70%);
  animation-delay: 3s;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(20px) translateX(10px); }
}

/* ======== INPUTS GLOW ======== */
.input-box input {
  width: 100%;
  padding: 14px 45px 14px 15px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(50, 92, 176, 0.25);
  transition: all 0.3s ease;
}

.input-box input:hover {
  border-color: rgba(50, 92, 176, 0.5);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 15px rgba(50, 92, 176, 0.4);
}
.input-box input:focus {
  border: 1.5px solid #4b7cf2;
  box-shadow: 0 0 20px rgba(75, 124, 242, 0.6);
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}
.input-box i {
  color: #c3c3c5;
  transition: color 0.3s;
}

.input-box input:focus + i {
  color: #4b7cf2;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

/* ======== FORM STRUCTURE ======== */
.login-box img {
  width: 90px;
  margin-bottom: 15px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(50, 92, 176, 0.4);
}
.login-box h2 {
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}
.input-box {
  position: relative;
  margin-bottom: 20px;
}
.input-box input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border-radius: 12px;
  outline: none;
}
.input-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}
.msg {
  margin-top: 15px;
  font-size: 0.9em;
}
.msg.error { color: #ff7f7f; }
.msg.success { color: #aaffaa; }
footer {
  position: absolute;
  bottom: 15px;
  text-align: center;
  width: 100%;
  font-size: 0.8em;
  color: #c3c3c5;
  opacity: 0.6;
}
