﻿@charset "UTF-8";
/*!
 * LoginSesionGsuite.css
 * Hoja de estilos para login gSuiteFEL — Global Business IT
 * Basada en la estructura de InicioSesion.css (ioVendo).
 * Paleta: verde corporativo #388E3C / #2E7D32 / #1B5E20
 */


/* ── BASE ────────────────────────────────────────────────────────────────── */
html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #FFFFFF;
}

* {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', 'Roboto', sans-serif;
}


/* ── LOGO ────────────────────────────────────────────────────────────────── */
#bloque-l {
    border-top: 4px solid #388E3C;
}

#logo {
    background-color: #FFFFFF;
    padding: 20px 40px 10px 40px;
    text-align: left;
}

    #logo img {
        height: clamp(60px, 8vh, 100px);
        width: auto;
        max-width: 70%;
    }


/* ── BLOQUE IZQUIERDO (formulario) ───────────────────────────────────────── */
#bloque-l {
    background-color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    overflow: hidden;
}


/* ── TÍTULOS ─────────────────────────────────────────────────────────────── */
h3 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #757575;
    font-weight: 400;
}

    h3 > strong {
        font-size: 36px;
        font-weight: 800;
        color: #212121;
        display: block;
        margin-bottom: 2px;
        line-height: 1.1;
    }


/* ── CONTENEDOR FORMULARIO ───────────────────────────────────────────────── */
#bloque-l > .container {
    padding: 0 40px !important;
    width: 100% !important;
    max-width: 440px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2vh !important;
}


/* ── FORM GROUPS ─────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
    border: none;
    padding: 0;
    background-color: transparent;
}

    .form-group.last {
        border-bottom: none;
        margin-bottom: 18px !important;
    }


    /* ── LABELS ──────────────────────────────────────────────────────────────── */
    .form-group label {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 6px;
        color: #757575;
    }


/* ── INPUTS ──────────────────────────────────────────────────────────────── */
.form-control {
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
    background: #E9EBE8;
    color: #212121;
    height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:active,
    .form-control:focus {
        outline: none;
        -webkit-box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.15);
        box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.15);
        border-color: #388E3C;
        background: #FFFFFF;
    }

    .form-control::placeholder {
        color: #BDBDBD;
        font-size: 14px;
    }

input[type="text"],
input[type="password"] {
    background: #E9EBE8;
    padding: 10px 48px 10px 16px;
    font-size: 14px;
}


/* ── INPUT WRAPPER (con íconos) ──────────────────────────────────────────── */
.bot-input-wrap {
    position: relative;
}

    .bot-input-wrap .form-control {
        padding-right: 48px;
    }

.bot-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #BDBDBD;
    pointer-events: none;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
}

    .bot-input-icon.clickable {
        pointer-events: auto;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .bot-input-icon.clickable:hover {
            color: #2E7D32;
        }


/* ── BOTÓN INICIAR SESIÓN ────────────────────────────────────────────────── */
.btn-block {
    display: block;
    width: 100%;
}

.btn-success {
    color: #FFFFFF;
    background: #388E3C;
    border: none;
    height: 48px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.30);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

    .btn-success:hover {
        background: #2E7D32;
        box-shadow: 0 6px 18px rgba(56, 142, 60, 0.40);
        transform: translateY(-1px);
        color: #FFFFFF;
    }

    .btn-success:active {
        background: #1B5E20;
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(56, 142, 60, 0.30);
        color: #FFFFFF;
    }

    .btn-success .material-symbols-outlined {
        font-size: 20px;
    }


/* ── LINK RECUPERAR CONTRASEÑA ───────────────────────────────────────────── */
a#txtRecuperarClave,
a#txtRecuperarClave p {
    color: #2E7D32 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 10px;
    margin-bottom: 0 !important;
    transition: color 0.2s ease;
}

    a#txtRecuperarClave:hover,
    a#txtRecuperarClave:hover p {
        text-decoration: underline;
        color: #388E3C !important;
    }

a,
a:hover {
    text-decoration: none;
    color: #2E7D32;
}


/* ── DIVISOR ─────────────────────────────────────────────────────────────── */
.fel-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px 0;
}

    .fel-divider::before,
    .fel-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E8E8E8;
    }

    .fel-divider span {
        font-size: 11px;
        color: #BDBDBD;
        font-weight: 500;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }


/* ── BOTONES PORTALES ────────────────────────────────────────────────────── */
.fel-portal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fel-btn-portal {
    height: 40px;
    border: 1.5px solid #D8D8D8;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    color: #616161 !important;
    cursor: pointer;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

    .fel-btn-portal .material-symbols-outlined {
        font-size: 16px;
    }

    .fel-btn-portal:hover {
        border-color: #388E3C;
        color: #2E7D32 !important;
        background: #F1F8F1;
        text-decoration: none !important;
    }

.fel-portal-row--single {
    display: flex;
    justify-content: center;
}

    .fel-portal-row--single .fel-btn-portal {
        width: calc(50% - 5px);
    }


/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.bot-login-footer {
    color: #BDBDBD !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 14px 40px;
    margin: 0 !important;
    flex-shrink: 0;
}

    .bot-login-footer a {
        color: #BDBDBD;
        text-decoration: none;
    }

        .bot-login-footer a:hover {
            color: #388E3C;
            text-decoration: underline;
        }


/* ── LAYOUT DOS COLUMNAS ─────────────────────────────────────────────────── */
/*
 * js.php carga Bootstrap 3 después de Bootstrap 5, eliminando flex: 0 0 auto
 * de col-md-6 y rompiendo el orden visual. Se fuerzan ancho y orden con IDs.
 * NO se elimina el padding de #bloque-l para que el container interno centre.
 */
.row.min-100 {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#bloque-l {
    order: 1 !important;
    -ms-flex: 0 0 50% !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
}

#bloque-r {
    order: 2 !important;
    -ms-flex: 0 0 50% !important;
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
}

#bloque-l > .container {
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
}


/* ── CARRUSEL / BLOQUE DERECHO ───────────────────────────────────────────── */
.min-100 {
    min-height: 100%;
}

#bloque-r {
    overflow: hidden;
}

#carrusel-login {
    height: 100vh;
    width: 100%;
}


/* ── LOADER SKELETON ─────────────────────────────────────────────────────── */

/* Overlay que cubre el panel izquierdo mientras valida */
.gsuite-loader {
    position: fixed;
    inset: 0 50% 0 0; /* solo cubre bloque-l (50% izquierdo) */
    z-index: 9999;
    background: #FFFFFF;
    display: none;
    flex-direction: column;
    padding: 20px 40px 0 40px;
    overflow: hidden;
}

    .gsuite-loader.visible {
        display: flex;
    }

/* Franja superior (simula el border-top de #bloque-l) */
.gsuite-loader {
    border-top: 4px solid #C8E6C9;
}

.gsuite-loader__logo-bar {
    padding: 20px 0 18px 0;
    margin-bottom: 24px;
}

/* Bloque genérico shimmer */
.gsuite-skel {
    border-radius: 6px;
    background: linear-gradient( 90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75% );
    background-size: 300% 100%;
    animation: gsuiteShimmer 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes gsuiteShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Piezas del skeleton */
.gsuite-skel--logo {
    width: 140px;
    height: 30px;
}

.gsuite-skel--title {
    width: 55%;
    height: 36px;
    border-radius: 8px;
}

.gsuite-skel--sub {
    width: 75%;
    height: 14px;
    border-radius: 6px;
}

.gsuite-skel--label {
    width: 70px;
    height: 11px;
    border-radius: 4px;
}

.gsuite-skel--input {
    width: 100%;
    height: 44px;
    border-radius: 8px;
}

.gsuite-skel--btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient( 90deg, #C8E6C9 25%, #A5D6A7 50%, #C8E6C9 75% );
    background-size: 300% 100%;
    animation: gsuiteShimmer 1.6s ease-in-out infinite;
}

/* Grupo campo (label + input) */
.gsuite-skel-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Contenedor de campos */
.gsuite-loader__fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 360px;
    width: 100%;
}


/* ── SWEETALERT2 ─────────────────────────────────────────────────────────── */
/* v11 usa :where() (especificidad 0) — Bootstrap 5 hereda line-height:1.5   */
/* en .swal2-icon-content, lo que hace el div del "!" más alto (5.625em) que */
/* el círculo (5em), desbordando hacia afuera. Se corrige con selectores de  */
/* clase directos que tienen mayor especificidad que div:where(.swal2-icon).  */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-in {
    pointer-events: auto !important;
}

.swal2-popup {
    font-size: 16px !important;
}

/* Rompe la cadena de em: fija el icono en px absolutos para que             */
/* 3.75em no escale sobre un ancestor con font-size inflado.                 */
.swal2-icon {
    width: 80px !important;
    height: 80px !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-icon .swal2-icon-content {
    font-size: 60px !important;
    line-height: 1 !important;
}


/* ── MODAL RECUPERAR CLAVE ───────────────────────────────────────────────── */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.modal-header {
    border-bottom: 1px solid #E8E8E8;
}

.modal-footer {
    border-top: 1px solid #E8E8E8;
}


/* ── RESPONSIVE: pantallas pequeñas ─────────────────────────────────────── */
@media (max-width: 767px) {
    .row.min-100 {
        flex-wrap: wrap !important;
    }

    #bloque-r {
        display: none !important;
    }

    #bloque-l {
        order: 1 !important;
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    #logo {
        text-align: center !important;
        padding: 12px 20px 4px 20px;
    }

        #logo img {
            height: clamp(50px, 10vw, 70px);
        }

    h3,
    h3 > strong {
        text-align: center;
    }

        h3 > strong {
            font-size: 30px;
        }

    #bloque-l > .container {
        padding: 10px 20px !important;
        max-width: 100% !important;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .fel-portal-row {
        grid-template-columns: 1fr;
    }
}


/* ── RESPONSIVE: pantallas bajas ─────────────────────────────────────────── */
@media (max-height: 700px) {
    #logo {
        padding: 12px 40px 6px 40px;
    }

        #logo img {
            height: clamp(50px, 6vh, 70px);
        }

    h3 > strong {
        font-size: 28px;
    }

    h3 {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .btn-success {
        height: 42px;
        font-size: 14px;
    }

    .form-control {
        height: 40px;
        padding: 8px 16px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 8px 48px 8px 16px;
    }

    .fel-divider {
        margin: 12px 0 10px 0;
    }

    .fel-btn-portal {
        height: 36px;
        font-size: 12px;
    }
}


/* ── LEGACY: botones tipo input ──────────────────────────────────────────── */
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
    width: 100%;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}
