  /* Enlace de activación */
  .ud-btn-recuperar {
    color: #002D62;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    background-color: rgba(0, 45, 98, 0.05);
    transition: all 0.3s ease;
    display: inline-block;
  }
  .ud-btn-recuperar:hover {
    color: #ffffff;
    background-color: #002D62;
    box-shadow: 0 4px 15px rgba(0, 45, 98, 0.3);
    text-decoration: none;
  }

  /* --- ESTRUCTURA ANCHA Y DISTRIBUIDA (SWEETALERT2) --- */
  .ud-popup-wide {
    width: 750px !important; /* Modal sustancialmente más ancho */
    max-width: 95% !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,45,98,0.25) !important;
    border: 1px solid #e2e8f0 !important;
  }
  
  /* Contenedor de doble columna */
  .ud-modal-layout {
    display: flex;
    flex-direction: row;
    min-height: 380px;
  }

  /* Columna Izquierda: Formulario e Información */
  .ud-col-main {
    flex: 1.2;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
  }

  /* Columna Derecha: Panel de Identidad Visual */
  .ud-col-brand {
    flex: 0.8;
    background: linear-gradient(135deg, #002D62 0%, #001f44 100%); /* Degradado Azul UD */
    border-left: 6px solid #ddad26; /* Línea Dorada UD */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #ffffff;
  }

  /* Elementos de Texto de la columna principal */
  .ud-institution-tag {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ddad26;
    margin-bottom: 8px;
  }
  .ud-col-brand .ud-institution-tag {
    color: #ddad26;
    text-align: center;
  }
  .ud-brand-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.4;
  }
  
  .ud-main-title {
    font-size: 18px;
    font-weight: 800;
    color: #002D62;
    margin: 0 0 15px 0;
  }
  .ud-main-text {
    font-size: 14px !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
  }

  /* Estilización del Campo de Texto */
  .ud-input-container {
    margin-bottom: 20px;
  }
  .ud-input-label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 6px;
    display: block;
  }
  .ud-input-field {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    padding: 0 15px !important;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease !important;
    box-sizing: border-box;
  }
  .ud-input-field:focus {
    border-color: #002D62 !important;
    box-shadow: 0 0 0 4px rgba(0, 45, 98, 0.15) !important;
    outline: none;
  }

  /* Botones de Acción inferiores */
  .ud-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
  }
  .ud-btn-submit {
    flex: 2;
    background-color: #002D62 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 46px;
    border: none;
    border-radius: 6px;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.15);
  }
  .ud-btn-submit:hover {
    background-color: #001f44 !important;
    box-shadow: 0 6px 16px rgba(0, 45, 98, 0.25);
  }
  .ud-btn-dismiss {
    flex: 1;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600;
    height: 46px;
    border: none;
    border-radius: 6px;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .ud-btn-dismiss:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b;
  }

  /* Ajuste responsivo para pantallas móviles */
  @media (max-width: 768px) {
    .ud-modal-layout { flex-direction: column-reverse; }
    .ud-col-brand { display: none; } /* Oculta la columna azul en móviles para ahorrar espacio */
    .ud-col-main { padding: 30px 20px; }
  }
  
    /* Contenedor General con Degradado Azul Institucional */
  .login-page-container {
    background: linear-gradient(135deg, #001f44 0%, #002D62 50%, #001530 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Tarjeta Central Flotante y Totalmente Responsiva */
  .login-card {
    width: 100%;
    max-width: 420px; /* Ancho máximo en pantallas grandes */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    
    /* Borde institucional superior */
    border-top: 5px solid #ddad26; 
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 25px;
  }

  /* Encabezado del Módulo */
  .login-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 4px 0;
  }

  .login-card p.subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #ddad26;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 35px 0;
  }

  /* Icono Central o Logo */
  .brand-icon-wrap {
    margin-bottom: 35px;
  }
  
  .brand-icon-wrap img {
    max-height: 75px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  }

  /* Estilos de los Campos de Entrada */
  .login-card .form-group {
    margin-bottom: 18px;
    width: 100%;
  }

  .login-card .input-field {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  .login-card .input-field:focus {
    border-color: #ddad26;
    box-shadow: 0 0 0 4px rgba(221, 173, 38, 0.2);
    outline: none;
  }

  /* Botón de Autenticación Rojo Vibrante (Idéntico a la imagen) */
  .btn-autenticar {
    background-color: #ff5722c7; /* Rojo de tu captura de pantalla */
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .btn-autenticar:hover {
    background-color: #ff5722de;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.45);
  }

  /* Contenedor de enlaces inferiores */
  .login-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Separación balanceada entre enlaces */
    align-items: center;
  }

  /* Enlaces Limpios */
  .link-login-navigation {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: inline-block;
  }

  .link-login-navigation:hover {
    opacity: 1;
    color: #ddad26; /* Transición a dorado institucional */
    text-decoration: underline;
  }

  .link-back-menu {
    font-size: 12.5px;
    opacity: 0.65;
  }

  /* PIE DE PÁGINA CORPORATIVO */
  .footer-institucional {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    width: 100%;
  }

  .footer-institucional img {
    max-height: 42px;
    width: auto;
    margin-bottom: 8px;
    opacity: 0.75;
  }

  .footer-institucional p {
    margin: 2px 0;
    letter-spacing: 0.5px;
    font-weight: 500;
  }

  /* --- ADAPTACIÓN RESPONSIVA PARA DISPOSITIVOS MÓVILES --- */
  @media (max-width: 480px) {
    .login-page-container {
      padding: 15px;
    }
    
    .login-card {
      padding: 35px 20px; /* Menor espaciado interno en teléfonos */
      border-radius: 14px;
    }

    .login-card h2 {
      font-size: 22px;
    }

    .login-card p.subtitle {
      margin-bottom: 25px;
    }

    .brand-icon-wrap {
      margin-bottom: 25px;
    }
  }
  
    /* Contenedor relativo para el campo de contraseña */
  .password-wrapper {
    position: relative;
    width: 100%;
  }

  /* Ajuste para que el texto siga centrado pero el input tenga espacio a la derecha */
  .password-wrapper .input-field {
    padding-right: 45px; /* Espacio para que el ojo no pise los asteriscos */
  }

  /* Botón del ojo interactivo */
  .toggle-password-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #64748b; /* Gris suave por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
  }

  .toggle-password-btn:hover {
    color: #002D62; /* Cambia al azul de la universidad al pasar el cursor */
  }
