﻿@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');


/*
    colores:
    Primary/Primario = #1E5591
    Primary/Primario oscuro = #0A396C
    Primary/Dash = #5780AD
    Success/300 = #ACCA54;
    Success/400 = #6C7E01
    Neutral/00 = #000
    Alert/300 = #FFB800
*/

@media screen and (min-width: 767px) {
    #dividedBackground {
        position:absolute;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        height: 100vh;
        background-image: linear-gradient(rgb(10, 57, 108), rgb(30, 85, 145)) !important;
    }

    #btnUserName {
        /*padding: 0;*/
        padding-right: 0% !important;
    }
}

.tituloLogin {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 0.5rem;
}

#dividedBackground {
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    color: #0A396C;
    font-family: Roboto;
    font-weight: 400;
    font-size: 1rem; /* 16px */
    line-height: 1.5;
    letter-spacing: 0.00938em;
    box-sizing: inherit;
    background: linear-gradient(#1E5591, #0A396C);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    border-bottom-left-radius: 0.9375rem; /* 15px */
    border-bottom-right-radius: 0.9375rem; /* 15px */
    height: 18.75rem; /* 300px */
    z-index: 0;
}

@media (max-height: 768px) {
    #dividedBackground {
        height: 14.75rem; /* 300px */
    }
}

#divModalMultiEmpresa {
    position: relative;
    z-index: 2;
}

#bodyLogin {
    background-color: #F6F9FA !important;
    z-index: -1;
}


.logoDt {
    position: relative;
    z-index: 2;
}

#btnSubmit {
    text-size-adjust: 100% !important;
    -webkit-font-smoothing: antialiased;
    font-family: Roboto;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.00938em;
    margin: 0.75rem 0 2rem !important;
    justify-content: center;
    display: flex;
    width: 100%;
}

    #btnSubmit:disabled {
        display: flex;
        max-width: 332px;
        padding: 8px 16px;
        justify-content: center;
        align-items: center;
        gap: 24px;
        border-radius: 24px;
        background: #CCC;

        text-size-adjust: 100% !important;
        -webkit-font-smoothing: antialiased;
        color: #FFF !important;
        font-family: Roboto;
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5;
        letter-spacing: 0.00938em;
        margin: 12px 0px 12px !important;
        -webkit-box-pack: center;
        border: none;
        cursor: not-allowed;

    }

#upPnlLogin {
    max-width: 332px;
    min-width: 189px;
    width: 100%;
}

/* Responsive fix for #upPnlLogin on small screens */
@media screen and (max-width: 480px) {
    #upPnlLogin {
        width: 50% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box;
        margin-left: 25%;
    }

    #btnUserName {
        /*padding: 0;*/
        padding-right: 0% !important;
    }

    #lblLogin {
        font-size: 13px;
        font-weight: normal;
        line-height: 20px;
        max-width: 279px;
        transform: translatex(15%);
    }

    .modal-content {
        width: 20.5rem !important;
        position: absolute; /* o fixed si quieres que esté sobre toda la pantalla */
        left: 45%;
        transform: translateX(-50%);
        padding: 1rem 1rem 0.625rem !important;
    }

    .inputLogin {
        max-width: 300px !important;
        left: 50%;
        transform: translateX(-50%);
    }

    .modal-body > * {
        text-align: justify !important;
    }

}

#LoginUser_UserName {
    display: inline;
    border: 0px;
    background-color: white;
}

/*#LoginUser_Password {
    display: inline;
    border: 0px;
    background-color: white;
}*/

#LoginUser_divUser, #LoginUser_divPass {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
}

.inputLogin {
    display: flex;
    max-width: 332px;
    min-width: 189px;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    position: relative;
    border-bottom: solid 1px;
    border-color: darkgray;
    align-content: space-between;
}

    .inputLogin::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #00b4ff 0%, #00b4ff 100%);
        transition: width 200ms cubic-bezier(0, 0, 0.2, 1), left 200ms cubic-bezier(0, 0, 0.2, 1);
        z-index: 1;
        pointer-events: none;
    }

    .inputLogin:focus-within::after,
    .inputLogin.input-animated::after {
        width: 100%;
        left: 0;
    }

.input-icon {
    position: relative;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
}

    .input-icon input {
        width: 100%;
        padding: 16px 12px 8px 12px;
        font-size: 1rem;
        border: none;
        background: white;
        outline: none;
        box-sizing: border-box;
    }

    .input-icon .label-text {
        position: absolute;
        left: 12px;
        top: 16px;
        color: #888;
        font-size: 1rem;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0,0,0.2,1);
        background: white;
        padding: 0 4px;
    }

    .input-icon i {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #B6CEE7;
        pointer-events: none;
        font-size: 1.2em;
    }
    .input-icon input:focus + .label-text,
    .input-icon input:not(:placeholder-shown) + .label-text {
        top: -8px;
        left: 8px;
        font-size: 0.85rem;
        color: #1E5591;
        background: white;
    }
    .toggle-password {
        transform: translateY(-25%);
        padding:0px
    }
.input-icon button span svg {
    fill: #1E5591;
}

#btnUserName {
    /*padding: 0;*/
    padding-right: 0% !important;
}

.label-text {
    color: var(--Gris-666, #666);
    font-family: Roboto;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

    .label-text.input-animated {
        color: #00b4ff;
    }

.forgotPass {
    color: #1E5591;
    font-weight: 500;
    font-size: 16px;
    line-height: normal;
    text-decoration:none !important;
}

.modal-backdrop {
    z-index: 1040 !important;
    background: #333 !important;
}

#myModal {
    border-radius: 16px;
    background: transparent !important;
    box-shadow: none;
    border: none;
    z-index: -3; /* Modal oculto, detrás de todo */
}

    #myModal.show, #myModal.in {
        z-index: 1050 !important; /* Modal visible, sobre el contenido */
    }

.modal-content {
    display: flex;
    width: 27.5rem; /* 440px */
    height: 33.9375rem; /* 543px */
    max-width: 82.5rem; /* 1320px */
    padding: 1.5rem 1.5rem 0.625rem; /* 24px 24px 10px */
    gap: 0.625rem; /* 10px */
    flex-shrink: 0;
    margin-left: 1.875rem; /* 30px */
    border-radius: 1rem; /* 16px */
    background: #FFF;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 0px 9px 0px #000;
}

@media (max-height: 768px) {
    .modal-content {
        height: 29.9375rem; /* 543px */
    }
}

.modal-header-primary {
    color: var(--Primary-Primario, #1E5591) !important;
    text-align: center;
    font-family: Roboto !important;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    /* color: blue !important; */
    background: transparent !important;
    display: flex;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none !important;
}

.modal-header-primary {
    /* color: #fff; */
    padding: 9px 15px;
    /* border-bottom: 1px solid #eee; */
    /* background-color: #428bca; */
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    gap: 1rem;
}

.modal-body,
#capt {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente */
    align-items: center; /* Centra horizontalmente */
    padding: 10px;
    font-family: Roboto;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    margin: 0px;
}

    .modal-body > * {
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

#txtUsername {
    width:330px;
}

.spanLogin {
    margin-left:0px !important;
}

.labelLogin {
    margin: 0px 0px 10px 15px;
    width: 100%;
    max-width: 332px;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.57;
    color: #333333;
    text-align:left !important;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    padding: 10px;
    font-family: Roboto;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    margin: 0px 0px 15px 0px;
    background: #FFF;
    border: 0px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

#btnVerificar {
    display: flex;
    max-width: 20.75rem; /* 332px */
    padding: 0.5rem 1rem; /* 8px 16px */
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* 24px */
    border-radius: 1.5rem !important; /* 24px */
    /* height: 1rem; */
    width: 100%;
    color: #fff;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 0.875rem; /* 14px */
    line-height: 1.25rem; /* 20px */
    letter-spacing: 0.00938em;
    background-color: #1E5591;
    border: none;
    text-transform: none;
    margin: 0.75rem 0 2rem !important; /* 12px 0px 32px */
    transition: background 0.2s, color 0.2s;
}

@media (max-height: 768px) {
    #btnVerificar {
        margin: 0.75rem 0 1.25rem !important; /* 12px 0px 32px */
    }
}


    #btnVerificar:disabled {
        background: #cccccc !important;
        color: #FFF !important;
        cursor: not-allowed;
    }

    #btnVerificar:hover {
        background: #5780AD !important;
        color: #FFF !important;
    }

.goBackBtn {
    background: none !important;
    color: #0A396C !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-family: Roboto !important;
    font-size: 16px !important;
    line-height: 20px !important;
    text-transform: none !important;
    outline: none !important;
    min-width: 0 !important;
    display: inline;
    cursor: pointer;
}

.recuperarPass {
    margin-bottom: 0px !important;
}

.lblRecuperarPass {
    margin-bottom:10px !important;
}

.btniniciarSesion {
    padding:0px;
}

/* estilos de las notificacion */

/*div.jGrowl div.jGrowl-notification {
    pointer-events: auto;
    height: 3.875rem;*/ /* 62px */
    /*border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f5f5f5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0;*/ /* sin margin-top */
/*}*/

/*@media (max-height: 768px) {
    div.jGrowl div.jGrowl-notification {
        height: 3.5rem;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}*/

@media (max-width: 480px) {
    .icon-personalizado {
        transform: scale(0.833); /* Aproximadamente 20/24 */
        transform-origin: center;
    }
}

    .jGrowl .mi-error {
        display: inline-flex !important;
        padding-right: 3.125rem !important; /* 50px */
        align-items: center !important;
        gap: 1rem !important; /* 16px */
        border-radius: 1rem !important; /* 16px */
        background: #FDDBDB !important;
        /* Elevación 2 */
        box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.15) !important;
    }

        .jGrowl .mi-error::before {
            content: '';
            display: flex;
            width: 1.5rem; /* 24px */
            padding: 2rem 1.5rem; /* 32px 24px */
            justify-content: center;
            align-items: center;
            gap: 0.625rem; /* 10px */
            border-radius: 0.9375rem 0 0 0.9375rem; /* 15px 0 0 15px */
            background: var(--Error-300, #E24C4C);
            background-image: url('../../assets/img/LoginImages/icon-info.png');
            background-size: 35%;
            background-repeat: no-repeat;
            background-position: center;
        }

    /* Contenedor notificación */
    .jGrowl .mi-error {
        position: relative;
        padding-left: 60px; /* espacio para la barra roja */
        padding-right: 40px !important; /* espacio para botón cerrar */
        background: #fdecea; /* fondo claro rojo */
        color: #a94442; /* texto rojo oscuro */
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        font-family: Arial, sans-serif;
    }

        /* Ajustar texto para que no choque con barra y botón */
        .jGrowl .mi-error .jGrowl-message {
            flex-grow: 1;
            padding-right: 12px;
            font-family: 'Roboto';
            font-size: 16px;
        }

        /* Botón cerrar */
        .jGrowl .mi-error .jGrowl-close {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #a94442;
            font-weight: bold;
            cursor: pointer;
            font-size: 18px;
            /*line-height: 1;*/
            border: none;
            background-image: url('../../assets/img/LoginImages/icon-X.png');
            background-size: 200%;
            background-repeat: no-repeat;
            background-position: center;
            background-color: transparent;
            text-indent: -9999px;
            font-size: 0;
        }

            .jGrowl .mi-error .jGrowl-close:hover {
                color: #E24C4C;
            }


    .alert {
        padding: 0px !important;
        color: #333 !important;
    }

    div.jGrowl {
        position: fixed !important;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999;
        font-family: 'Roboto', sans-serif !important;
        color: #333 !important;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }