/* ==========================================================================
   ESTILOS DE LOGIN - AIGS GESTOR (Glassmorphism & Security Panel)
   ========================================================================== */

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at top right, #1e3a8a, #0f172a 60%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Asegura estar sobre todo el sistema */
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  overflow: hidden;
}

/* Decoraciones animadas en el fondo */
.login-overlay::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.login-overlay::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.login-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
  animation: loginFadeIn 0.5s ease-out;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.login-header p {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.login-form-group {
  margin-bottom: 22px;
  position: relative;
}

.login-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.login-input-wrapper {
  position: relative;
}

.login-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
}

.login-form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px 12px 42px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
}

.login-form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background: rgba(15, 23, 42, 0.8);
}

.login-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  background: #475569;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.login-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: loginShake 0.4s ease-in-out;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.login-footer-info {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
}

.login-footer-info i {
  margin-right: 4px;
}
