﻿:root {
    /*Configuración Login Logo Superior*/
    --AnchoLogoSuperior: 245px;
    --AlturaLogoSuperior: 60.5px;
    /*Configuración Login Logo Inferior*/
    --AnchoLogoInferior: 245px;
    --AlturaLogoInferior: 125px;
}

/* ================= RESET Y LAYOUT PRINCIPAL ================= */
body.NuevoLogin {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--fontFamilyBody, "Segoe UI"); /* Fuente base para toda la página */
    background-color: var(--backgroundContent, #fbfbfb);
}

.NuevoLogin h1, .NuevoLogin h2, .NuevoLogin h3, .NuevoLogin .acceso-seguro {
    font-family: var(--fontFamilyTitle, "Segoe UI");
}

.NuevoLogin .split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ================= PANEL DERECHO (LOGIN) ================= */
.right-pane {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 65px 58px;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--colorPrimarioCliente, #00263e) 40%, white), transparent 37%), linear-gradient(145deg, #fafafa 0%, #eeeeef 58%, #d7d7d9 100%);
}

    .right-pane::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.82), transparent 30%);
        pointer-events: none;
    }

    .right-pane.backgroundClasico {
        position: absolute;
        inset: 0;
        z-index: 1;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        /*background-image: url(Images/Background.png);
        background-size: cover;
        background-position: center;*/
        background: transparent !important;
    }

.login-card {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 500px;
    padding: 26px 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.login-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 64px;
    margin: 0 0 22px 0;
    padding: 0;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

    .login-banner.banner-fallback {
        justify-content: flex-start;
    }

        .login-banner.banner-fallback::before {
            content: "Multicotizador";
            position: relative;
            z-index: 2;
            color: #151515;
            font-size: 38px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -2px;
            text-align: left;
        }

.login-header {
    margin-bottom: 27px;
}

    .login-header .acceso-seguro {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 12px;
        color: var(--colorPrimarioCliente, #00263e);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.7px;
        text-transform: uppercase;
    }

.acceso-seguro::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 10px;
    background: var(--colorPrimarioCliente, #00263e);
}

.login-header h2 {
    margin: 0 0 10px;
    color: var(--colorSecundarioCliente, #00263e);
    font-size: 40px;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -1.4px;
}

.login-header p {
    margin: 0;
    color: var(--colorLightMode, #000000);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

/* Estilos de Inputs */
.custom-input-group {
    position: relative;
    margin-bottom: 19px;
}

    .custom-input-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--colorLightMode, #000000);
        font-size: 14px;
        font-weight: 700;
    }

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

    .input-icon-wrapper:focus-within .input-icon {
        color: var(--colorPrimarioCliente, #00263e);
    }

    .input-icon-wrapper .input-icon {
        position: absolute;
        top: 50%;
        left: 18px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        color: #4d535a;
        font-size: 17px;
        transform: translateY(-50%);
        transition: color 0.2s ease;
        pointer-events: none;
    }

.custom-form-control {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 50px 0 54px;
    border: 0.5px solid #4d535a;
    border-radius: 12px;
    outline: none;
    background: #eef4ff;
    color: var(--colorLightMode, #000000);
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .custom-form-control:focus {
        border-color: var(--colorPrimarioCliente, #00263e);
        background: var(--colorWhite);
        box-shadow: 0 0 0 1.5px var(--colorPrimarioCliente, #00263e);
    }

.login-message-error {
    color: #C8102E;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

/* Botón de Login */
.btn-login-custom {
    align-items: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--colorPrimarioCliente, #00263e) 90%, white), var(--colorPrimarioCliente, #00263e));
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--colorPrimarioCliente, #00263e);
    color: var(--colorWhite, white);
    cursor: pointer;
    display: flex;
    font-family: var(--fontFamilyBody, "Segoe UI");
    font-size: 16px;
    font-weight: 700;
    gap: 11px;
    height: 59px;
    justify-content: center;
    margin-top: 25px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    width: 100%;
}

    .btn-login-custom::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
        transform: skewX(-20deg);
        transition: left 0.55s ease;
    }

    .btn-login-custom:hover {
        box-shadow: 0 15px 25px var(--colorPrimarioCliente, #00263e);
        color: var(--colorWhite, white);
        transform: translateY(-2px);
    }

.secure-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    color: var(--colorLightMode, #00263e);
    font-size: 12px;
    text-align: center;
    font-weight: 400;
}

    .secure-footer i {
        color: var(--colorPrimarioCliente, #00263e);
    }

.copyright {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 3;
    padding: 0 15px;
    color: var(--colorLightMode, #000000);
    font-size: 11px;
    font-weight: 400;
    text-align: center;
}

    .copyright.textoBlanco {
        color: white;
    }

/* ================= ESTILOS DEL MODAL LEGADO (SIN CAMBIOS) ================= */
#securityModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    #securityModal .modal-box {
        background: #ffffff;
        width: 420px;
        max-width: 90%;
        border-radius: 8px;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        text-align: center;
    }

    #securityModal .modal-title {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 15px;
        color: #003366;
    }

    #securityModal .dg-modal-text {
        font-size: 12px;
        color: #333;
        margin-bottom: 25px;
        line-height: 1.5;
        white-space: pre-line;
    }

    #securityModal input[type="submit"] {
        display: block;
        width: 100%;
        padding: 10px;
        border-radius: 4px;
        font-size: 12px;
        cursor: pointer;
        border: none;
        margin-bottom: 10px;
    }

.dg-btn-primario {
    background-color: #005baa !important;
    color: white !important;
}

.dg-btn-secundario {
    background-color: #e0e0e0 !important;
    color: #333 !important;
}

.modalBackground {
    background-color: rgba(0,0,0,0.5);
}

/* MEDIA QUERYS PARA ADAPTAR CONTENIDO */
@media (max-width: 1200px) {
    .right-pane {
        padding: 38px 42px 58px;
    }

    .login-card {
        max-width: 480px;
        padding: 24px 32px 30px;
    }
}
