/* =============================================
   ESTILOS DE LA PÁGINA DE LOGIN
   ============================================= */

body {
  background: linear-gradient(135deg, #e22929 0%, #372bd8 50%, #000000 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.login-card {
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.125);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  z-index: 1;
}

.login-header {
  background: transparent;
  color: white;
  text-align: center;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.login-header h3 {
  margin: 0;
  font-weight: bold;
  font-size: 1.75rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-header small {
  opacity: 0.8;
}

/* Animación del nombre */
.app-name {
  display: inline-block;
  position: relative;
}

.text-animated {
  display: inline-block;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.9s ease;
}

.text-animated.show {
  opacity: 1;
  transform: scale(1);
}

.text-animated.hide {
  opacity: 0;
  transform: scale(0.8);
}

@keyframes shine {
  0%   { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
  50%  { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(59, 130, 246, 0.6); }
  100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

.ektra-glow {
  animation: shine 2s ease-in-out infinite;
  font-weight: 900;
  letter-spacing: 2px;
}

/* Formulario */
.card-body {
  background: transparent;
  padding: 2rem 1.5rem !important;
}

.form-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-primary {
  background: #3b82f6;
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.p-3 {
  background: transparent;
}

/* Mensajes flash */
.alert {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

/* Footer */
.login-footer {
  background: transparent;
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.developer-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
}

/* =============================================
   BURBUJAS DE FONDO
   ============================================= */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float-up linear infinite;
}

.particle:nth-child(1)  { width: 6px;  height: 6px;  left: 8%;  background: #e22929; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2)  { width: 10px; height: 10px; left: 20%; background: #372bd8; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3)  { width: 4px;  height: 4px;  left: 35%; background: #ffffff; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4)  { width: 8px;  height: 8px;  left: 55%; background: #e22929; animation-duration: 15s; animation-delay: 1s; }
.particle:nth-child(5)  { width: 5px;  height: 5px;  left: 70%; background: #372bd8; animation-duration: 20s; animation-delay: 3s; }
.particle:nth-child(6)  { width: 12px; height: 12px; left: 85%; background: #ffffff; animation-duration: 14s; animation-delay: 5s; }
.particle:nth-child(7)  { width: 7px;  height: 7px;  left: 45%; background: #e22929; animation-duration: 16s; animation-delay: 7s; }
.particle:nth-child(8)  { width: 9px;  height: 9px;  left: 62%; background: #372bd8; animation-duration: 11s; animation-delay: 6s; }
.particle:nth-child(9)  { width: 5px;  height: 5px;  left: 13%; background: #ffffff; animation-duration: 13s; animation-delay: 1.5s; }
.particle:nth-child(10) { width: 8px;  height: 8px;  left: 28%; background: #e22929; animation-duration: 17s; animation-delay: 3.5s; }
.particle:nth-child(11) { width: 11px; height: 11px; left: 50%; background: #372bd8; animation-duration: 19s; animation-delay: 0.5s; }
.particle:nth-child(12) { width: 4px;  height: 4px;  left: 78%; background: #ffffff; animation-duration: 9s;  animation-delay: 8s; }
.particle:nth-child(13) { width: 7px;  height: 7px;  left: 92%; background: #e22929; animation-duration: 22s; animation-delay: 2.5s; }
.particle:nth-child(14) { width: 6px;  height: 6px;  left: 3%;  background: #372bd8; animation-duration: 14s; animation-delay: 9s; }
.particle:nth-child(15) { width: 9px;  height: 9px;  left: 40%; background: #ffffff; animation-duration: 21s; animation-delay: 4.5s; }
.particle:nth-child(16) { width: 5px;  height: 5px;  left: 67%; background: #e22929; animation-duration: 16s; animation-delay: 10s; }
.particle:nth-child(17) { width: 13px; height: 13px; left: 18%; background: #372bd8; animation-duration: 24s; animation-delay: 6.5s; }
.particle:nth-child(18) { width: 4px;  height: 4px;  left: 57%; background: #ffffff; animation-duration: 11s; animation-delay: 11s; }
.particle:nth-child(19) { width: 7px;  height: 7px;  left: 30%; background: #e22929; animation-duration: 13s; animation-delay: 5.5s; }
.particle:nth-child(20) { width: 10px; height: 10px; left: 80%; background: #372bd8; animation-duration: 20s; animation-delay: 8.5s; }
.particle:nth-child(21) { width: 6px;  height: 6px;  left: 95%; background: #ffffff; animation-duration: 15s; animation-delay: 7.5s; }
.particle:nth-child(22) { width: 8px;  height: 8px;  left: 23%; background: #e22929; animation-duration: 18s; animation-delay: 12s; }
.particle:nth-child(23) { width: 5px;  height: 5px;  left: 73%; background: #372bd8; animation-duration: 10s; animation-delay: 9.5s; }
.particle:nth-child(24) { width: 11px; height: 11px; left: 48%; background: #ffffff; animation-duration: 23s; animation-delay: 3s; }

@keyframes float-up {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.15; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
