 /* Estructura del modal */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.custom-modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--box-shadow);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.custom-modal.active .modal-content {
  transform: translateY(0);
}

/* Encabezado del modal */
.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: var(--text);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-header p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* Campos del formulario */
.form-group {
  margin-bottom: .8rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-group input {
  width: 100%;
  padding: 0.9375rem 1rem;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--light-gray);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  background-color: var(--white);
}
   
.login-submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  /*background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);*/
  background: #afe607;
  color: #1F1F1F;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.login-submit-btn:hover {
  /* background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);*/
  background: #1F1F1F;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #afe607;
}

.login-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-submit-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.login-submit-btn:hover::after {
  transform: translateX(100%);
}

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f9f9;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  padding-bottom: 3px;
}

.modal-close:hover {
  background: #e9ecef;
  color: var(--text);
}

        /* Enlace olvidé contraseña */
.forgot-password {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
}

.forgot-password a {
  color:#2D8CFF;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Logo */
.modal-logo {
  text-align: center;
  margin-bottom: .5rem;
}

.modal-logo img {
  height: 50px;
  width: auto;
}
   
.user-avatar {
  display: none;
  align-items: center;
  position: relative;
  cursor: pointer;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow);
}
    
.user-avatar:hover {
  background: #f5f5f5;
  box-shadow: var(--box-shadow);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}
    
.avatar-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
    
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
    
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
    
.user-dropdown-icon {
  font-size: 16px;
  color: #666;
  transition: transform 0.2s;
}
    
.user-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(0, 108, 255, 0.15);
  padding: 10px;
  width: 220px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}
    
.user-avatar:hover .user-dropdown {
  display: block;
  animation: fadeIn 0.2s ease-out;
}
    
.user-dropdown a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
    
.user-dropdown a:hover {
  background: #f8f9fa;
  border-left: 3px solid #afe607;
}
    
.user-dropdown a i {
  margin-right: 12px;
  font-size: 18px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}
    
.user-dropdown a:hover i {
  color: #afe607;
}
    
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
    
/* Estilos para el separador */
.user-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 0;
}

/* Estilos para el estado de validación */
input.validando {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23cccccc"><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z" opacity=".5"/><path d="M12 2a10 10 0 0 1 10 10h2a12 12 0 0 0-12-12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 35px;
}

.text-danger.d-none {
  display: none !important;
}

/* Estilo para el botón deshabilitado */
.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
   
/* Estilos para mensajes de error */
.text-danger {
  color: #dc2626 !important; /* Rojo más intenso */
  font-size: 0.85rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(220, 38, 38, 0.05);
  border-left: 3px solid #dc2626;
  border-radius: 0.125rem;
}

.mensaje {
  font-size: 0.875rem;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Transición suave para formularios */
.transicion-suave {
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.transicion-suave.activo {
  opacity: 1;
  pointer-events: auto;
  height: auto;
  overflow: visible;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  flex: 1;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  color: #6b7280;
}

.toggle-password:hover {
  color: #afe607;
  transition: all 0.3s ease;
}


