/* ============================
   PANEL LOGIN – Estilo corporativo
============================ */

/* PANEL LOGIN exactamente debajo del botón "Ingresar" */
.login-wrapper {
    position: relative !important; /* PUNTO CLAVE */
}

.login-panel {
    position: absolute;
    top: 100%;       /* justo debajo del botón */
    right: 0;        /* alineado al borde del menú */
    width: 330px;

    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d9dff0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    z-index: 99999;
}


.login-title {
    color: #0d1a40;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Estilo input con icono */
.input-icon {
    display: flex;
    align-items: center;
    background: #eef3ff;
    border-radius: 8px;
    border: 1px solid #cdd7f1;
    padding: 8px 10px;
    margin-bottom: 12px;
    gap: 10px;
}

.input-icon i {
    font-size: 18px;
    color: #0d1a40;
}

.input-icon input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 15px;
}

/* Botón ingresar */
.btn-login {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background-color: #0d1a40;
    border: none;
    color: white;
    font-weight: 600;
    margin-top: 8px;
}

.btn-login:hover {
    background-color: #0b1636;
}

/* Link recuperar */
.forgot-link {
    font-size: 13px;
    color: #0d1a40;
    text-decoration: underline;
}

/* Loading */
.login-loading {
    text-align: center;
    margin-bottom: 12px;
}

.login-loading p {
    font-size: 12px;
    color: #777;
}

/* Error */
.login-error {
    color: red;
    font-size: 12px;
    margin-bottom: 6px;
}

/* Asegura que los estilos no se sobreescriban */
#loginPanel,
#loginPanel * {
    box-sizing: border-box !important;
}

/* Ajuste del tamaño de fuente para el enlace de cerrar sesión */
.user-profile-dropdown .dropdown-item.text-danger {
    font-size: 15px;
}
