/* ===== 1. CONTENEDOR Y FONDO AZUL TRASLÚCIDO ===== */
.quick-login-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.quick-login-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.quick-login-backdrop {
  position: absolute;
  inset: 0;
  /* Gradiente azul institucional traslúcido */
  background: linear-gradient(135deg, rgba(0, 26, 61, 0.5) 0%, rgba(0, 56, 118, 0.35) 100%); 
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* ===== 2. LA TARJETA (CARD) ===== */
.quick-login-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px; /* Un toque más redondeado */
  /* Sombra de alta calidad (doble capa) */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 420px;
  width: 90%;
  padding: 45px; /* Más espacio para que respire */
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.7); /* Borde de "luz" muy fino */
  animation: modalFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 3. HEADER Y TEXTOS ===== */
.quick-login-header {
  margin-bottom: 25px;
  position: relative;
}

.quick-login-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.6px;
  padding-right: 30px; /* Espacio para la X */
}

.quick-login-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 12px 0 30px;
}

/* ===== 4. INPUTS Y OJITO ===== */
.quick-input-group label {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 8px;
  display: block;
}

.quick-input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.quick-input-wrapper > i:first-child {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: 0.9rem;
}

.quick-input-wrapper input {
  width: 100%;
  padding: 16px 45px 16px 50px; /* Padding ajustado para icono y ojo */
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.95rem;
  color: #1e293b;
  transition: all 0.3s ease;
}

.quick-input-wrapper input:focus {
  background: #ffffff;
  border-color: #003876;
  box-shadow: 0 0 0 4px rgba(0, 56, 118, 0.06);
  outline: none;
}

/* EL OJITO */
/* EL OJITO (única regla, sin duplicados) */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 5;
  pointer-events: auto;
}

.toggle-password:hover {
  color: #003876;
}

/* ===== 5. BOTÓN MATE PROFESIONAL ===== */
.quick-login-submit {
  background: #003876;
  color: white;
  border: none;
  width: 100%;
  height: 56px; /* Altura pro */
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.quick-login-submit:hover {
  background: #002a58;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

/* ===== 6. LA EQUIS (X) FRESONA ===== */
.quick-login-close {
  position: absolute;
  top: -22px; 
  right: -22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.quick-login-close:hover {
  background: #003876;
  color: #ffffff;
  border-color: #003876;
  transform: rotate(90deg) scale(1.1);
}

/* ===== 7. FOOTER LIMPIO ===== */
.quick-login-footer {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}

.quick-link i {
  color: #003876; /* Iconos con color de marca */
  font-size: 0.9rem;
}

.quick-link:hover {
  color: #003876;
  text-decoration: underline;
}

/* Animaciones */
@keyframes modalFadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
