/*
* LOGIN
*/
/* Variables de paleta de colores para consistencia de marca */
:root {
    --bg-dark-saas: #0b132b;
    --input-focus: #3b82f6;
    --gradient-start: #3a7bd5;
    --gradient-end: #3a6073;
}

html {
    /* 🔴 FORZADO DE ESCALA AUTOMÁTICA AL 80% (Equivale a bajar el zoom del navegador) */
    zoom: 75%; 
    
    /* Compatibilidad específica para navegadores basados en Webkit/Blink (Chrome, Edge, Opera, Safari) */
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark-saas);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 132vh;
    min-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor principal de la tarjeta de login */
.login-master-card {
    background-color: #111a36;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    min-height: 550px;
    min-width: 1024px;
}

/* Panel decorativo izquierdo: Imagen de Londres con Overlay */
.login-decor-side {
    background-image: linear-gradient(rgba(11, 19, 43, 0.5), rgba(11, 19, 43, 0.85)), 
                        url(../img/fondo_login.png);
                      /*url('https://www.iese.edu/es/insight/wp-content/uploads/sites/4/2022/11/Londres-Cities-in-motion-1024-alto.jpg');*/
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    position: relative;
}

.text-welcome-saas {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Panel derecho: Formulario de captura */
.login-form-side {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-sign-in {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

/* Cajas de texto: Fondo blanco y letras negras solicitadas por QA */
.form-control-saas {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #1e293b;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-control-saas:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background-color: #ffffff !important;
    color: #000000 !important;
}

.form-label-saas {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Botón azul degradado redondeado premium */
.btn-gradient-saas {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 30px; /* Redondeado total */
    padding: 12px;
    letter-spacing: 0.5px;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.btn-gradient-saas:hover {
    opacity: 0.95;
}

.btn-gradient-saas:active {
    transform: scale(0.98);
}

/* Botones de redes sociales alternativas */
.btn-oauth-saas {
    background-color: #1e293b;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-oauth-saas:hover {
    background-color: #334155;
    color: #fff;
}

/***
* swal2
***/
.swal2-backdrop-blur-saas {
    background: rgba(11, 19, 27, 0.6) !important; /* Capa oscura traslúcida */
    backdrop-filter: blur(8px) !important;       /* Filtro de difuminado nativo del navegador */
    -webkit-backdrop-filter: blur(8px) !important; /* Compatibilidad con Safari de Apple */
    transition: all 0.3s ease;
}

/* Ajustes de contraste para que SweetAlert2 haga match con la paleta oscura del ERP */
.swal2-popup-saas-custom {
    background-color: #fdfdfd !important;
    color: #000000 !important;
    border-radius: 16px !important;
    border: 1px solid #1e293b !important;
}

.swal2-title-saas-custom {
    color: #000000 !important;
    font-size: 1.4rem !important;
}

.swal2-html-saas-custom {
    color: #000000 !important;
    font-size: 0.9rem !important;
}

@media (max-width: 767.98px) {
    
    body {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important; /* Habilita scroll vertical natural en smartphones */
        padding: 16px !important;
    }
    
    .login-master-card {
        width: 100% !important;
        min-width: 100% !important; /* Rompe los 1024px rígidos */
        height: auto !important;
        min-height: auto !important; /* Rompe los 550px rígidos */
        zoom: 100% !important; /* Mantiene la escala tipográfica nativa en celulares */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column-reverse; /* Refuerzo de inversión de flujo en la capa CSS */
    }

    /* 🔴 REQUERIMIENTO CUMPLIDO: Activamos la imagen en móvil posicionada en la base inferior */
    .login-decor-side {
        display: flex !important; /* Activamos el nodo borrando el display: none */
        width: 100% !important;
        height: 220px !important; /* Fijamos una altura compacta ideal para el fondo del celular */
        padding: 24px !important; /* Márgenes internos más esbeltos para pantallas táctiles */
        justify-content: flex-end;
    }

    /* Ajuste para que las letras del welcome en la foto se encojan armónicamente en el celular */
    .text-welcome-saas {
        font-size: 1.2rem !important; 
        text-align: center;
        width: 100%;
    }

    .login-form-side {
        width: 100% !important;
        padding: 35px 24px !important; /* Espaciado compacto superior */
    }

    .title-sign-in {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
        text-align: center;
    }

    .btn-oauth-saas {
        width: 100% !important;
        margin-bottom: 8px;
    }
}