/* LoginRedesign.css */

html,
body {
    height: 100% !important;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'AllianzNeoW04-Regular', Arial, sans-serif !important;
    margin: 0;
    padding: 0;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    background-color: #004a99 !important;
}

form {
    display: contents;
}

/* Ensure font is available - referencing standard portal fonts if possible */
@font-face {
    font-family: 'AllianzNeoW04-Regular';
    src: url('../fonts/AllianzNeoW04-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.login-header {
    background-color: #ffffff;
    padding: 0 40px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    height: 55px !important;
    /* Reducido de 65px */
    width: 100%;
    flex-shrink: 0;
    z-index: 1000;
}

    .login-header .logo-container {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .login-header img {
        max-height: 35px;
        /* Ajustado para el nuevo alto */
    }

    .login-header .divider {
        border-left: 1px solid #cccccc;
        height: 35px;
        /* Ajustado para el nuevo alto */
        margin-left: 30px;
    }

/* MAIN CONTENT STYLES */
.login-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 12%;
    overflow: visible;
    min-height: 0;
    background-image: url('../../images/Login/LoginPantalla.jpg') !important;
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.login-card {
    background-color: #ffffff !important;
    padding: 40px 35px;
    /* Más padding vertical para hacerlo más grande */
    width: 100%;
    max-width: 380px;
    /* Un poco más ancho */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-radius: 4px;
    margin-left: auto;
}

    .login-card h2 {
        color: #004a99;
        font-size: 18px;
        /* Un poco más grande */
        font-weight: 500;
        margin-bottom: 10px;
        /* Más espacio */
        letter-spacing: 0.5px;
    }

    .login-card h3 {
        color: #004a99;
        font-size: 26px;
        /* Más imponente */
        font-weight: 700;
        margin-bottom: 30px;
        /* Espaciado generoso */
    }

/* FORM GROUP STYLES */
.input-group-custom {
    margin-bottom: 20px;
    /* Más aire entre campos */
    text-align: left;
}

.label-custom {
    color: #004a99;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .label-custom i {
        font-size: 24px;
        width: 30px;
        text-align: center;
    }

.input-container {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 0 10px;
    background: #ffffff;
}

    .input-container input {
        border: none;
        flex: 1;
        font-size: 18px;
        color: #333;
        outline: none;
        padding: 6px 8px;
        width: 100%;
    }

    .input-container:focus-within {
        border-color: #007ab3;
        box-shadow: 0 0 5px rgba(0, 122, 179, 0.2);
    }

/* BUTTON STYLES */
.btn-ingresar {
    background-color: #007ab3;
    color: #ffffff !important;
    border: none;
    padding: 10px 25px;
    /* Botón más grande */
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .btn-ingresar:hover {
        background-color: #005a85;
    }

.link-olvido {
    color: #007ab3;
    /*    text-decoration: underline;*/
    font-size: 18px;
    /*    font-weight: 600;*/
}

    .link-olvido:hover {
        color: #005a85;
    }

/* FOOTER STYLES */
.login-footer {
    background-color: #ffffff !important;
    width: 100%;
    height: 75px !important;
    flex-shrink: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Volvemos a centro para evitar cortes */
    padding: 0 40px;
}

.footer-links {
    text-align: left;
    font-size: 8.5px;
    color: #444;
    padding: 0;
    /* Quitamos padding individual para usar el general de la barra */
    margin: 0;
}

    .footer-links a {
        color: #0056b3;
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

    .footer-links .copyright {
        margin-top: 2px;
        color: #414141;
    }

.footer-bottom {
    text-align: center;
    padding: 0;
    margin-top: 2px;
    /* Espacio mínimo para que no se oculte */
}

    .footer-bottom hr {
        width: 90%;
        border: none;
        border-top: 1px solid #dee2e6;
        margin: 0 auto 1px;
    }

    .footer-bottom b {
        color: #414141;
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .footer-bottom span {
        font-size: 8.5px;
        color: #666;
    }

/* Responsive adjustments */
@media (max-width: 992px) {
    .login-container {
        justify-content: center;
        padding-right: 0;
    }
}

/* Prevent shift, but allow visibility */
body.swal2-shown {
    height: 100vh !important;
    overflow: hidden !important;
    padding-right: 0 !important;
}

html.swal2-height-auto {
    height: 100% !important;
}

.page-footer {
    flex-shrink: 0 !important;
    width: 100%;
}

    .page-footer > div:first-child {
        padding: 10px 40px 6px 40px !important;
    }

    .page-footer img {
        max-width: 160px !important;
        width: 18% !important;
    }
