/* ---------- RESET GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    overflow: hidden;
    /* elimina scroll en body, todo dentro de .login-full */
}

/* Contenedor principal: ocupa 100% viewport */
.login-full {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    padding: 0;
}

/* Card que ocupa todo el alto y ancho */
.login-card-full {
    width: 100%;
    height: 100%;
    max-width: 100%;
    /* Eliminamos el límite para que ocupe toda la pantalla */
    max-height: 100%;
    /* Eliminamos el límite para que ocupe toda la pantalla */
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* La fila interior debe ocupar el 100% de la card */
.row-full {
    flex: 1;
    width: 100%;
    margin: 0;
    --bs-gutter-x: 0;
}

/* Cada columna debe ocupar toda la altura */
.col-imagen {
    background-image: url('https://unsxx.bo/img/fondo2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100%;
    /* toma toda la altura de la fila */
    height: 100%;
    position: relative;
    padding: 0 !important;
    display: flex;
}

/* Overlay azul transparente (ocupa toda la columna) */
.overlay-azul {
    background-color: rgba(13, 71, 161, 0.70);
    /* azul con transparencia */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.overlay-azul h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 2.8rem;
    border-left: 8px solid #dc3545;
    /* rojo */
    padding-left: 1.8rem;
    line-height: 1.2;
}

.overlay-azul h2 small {
    display: block;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 0.8rem;
    border-left: none;
    padding-left: 0;
}

/* Columna derecha: login centrado verticalmente */
.col-login {
    background-color: #ffffff;
    padding: 2.5rem 2.8rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 100%;
}

.login-header {
    margin-bottom: 0.8rem;
}

.login-header h3 {
    font-weight: 700;
    color: #0a0a0a;
    /* negro */
    font-size: 2rem;
    letter-spacing: -0.3px;
}

.login-header h3 i {
    color: #dc3545;
    /* rojo */
    margin-right: 10px;
}

.login-header p {
    color: #4a5568;
    font-weight: 400;
    font-size: 1rem;
    margin-top: 0.3rem;
}

/* Estilos de inputs con iconos */
.input-group {
    margin-bottom: 1.5rem;
    border-radius: 60px;
    background: #fafbfc;
    border: 1.5px solid #e0e4e9;
    transition: 0.2s;
}

.input-group:focus-within {
    border-color: #0d47a1;
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.15);
    background: #ffffff;
}

.input-group-text {
    background: transparent;
    border: none;
    padding-left: 1.2rem;
    padding-right: 0.4rem;
    color: #0d47a1;
    font-size: 1.1rem;
}

.form-control {
    border: none;
    background: transparent;
    padding: 0.85rem 1.2rem 0.85rem 0.5rem;
    font-weight: 400;
    font-size: 1rem;
    border-radius: 0 60px 60px 0;
    box-shadow: none;
}

.form-control:focus {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Botón Ingresar (rojo con degradado) */
.btn-ingresar {
    background: linear-gradient(145deg, #dc3545, #b22234);
    border: none;
    border-radius: 60px;
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    transition: 0.25s;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.35);
    width: 100%;
    margin-top: 0.4rem;
}

.btn-ingresar:hover {
    background: linear-gradient(145deg, #c82333, #a01e2b);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(220, 53, 69, 0.5);
    color: white;
}

.btn-ingresar i {
    margin-right: 10px;
}

/* Enlace olvidaste contraseña */
.link-olvidaste {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
}

.link-olvidaste i {
    margin-right: 6px;
    color: #dc3545;
    font-size: 0.9rem;
}

.link-olvidaste:hover {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.footer-login {
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-seguro {
    color: #0a0a0a;
    font-weight: 500;
    font-size: 0.9rem;
}

.badge-seguro i {
    color: #0d47a1;
    margin-right: 4px;
}

/* ---------- RESPONSIVE: Ajustes para 22 pulgadas (1920x1080) ---------- */
@media screen and (min-width: 1400px) {
    .overlay-azul h2 {
        font-size: 3.5rem;
        /* Texto más grande en pantallas grandes */
    }

    .col-login {
        padding: 3rem 4.5rem !important;
        /* Más espacio en los costados */
    }

    .login-header h3 {
        font-size: 2.2rem;
        /* Título más grande */
    }

    .login-header p {
        font-size: 1.1rem;
        /* Subtítulo más grande */
    }

    .logo {
        width: 35%;
        /* Logo más grande en monitores grandes */
    }

    .btn-ingresar {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        /* Botón más grande */
    }

    .form-control {
        padding: 1rem 1.5rem 1rem 0.5rem;
        font-size: 1.1rem;
        /* Inputs más grandes */
    }

    .input-group-text {
        font-size: 1.2rem;
        /* Iconos más grandes */
    }
}

/* Para pantallas de escritorio estándar (1024px - 1399px) */
@media screen and (min-width: 1024px) and (max-width: 1399px) {
    .logo {
        width: 30%;
    }

    .overlay-azul h2 {
        font-size: 2.8rem;
    }

    .col-login {
        padding: 2.5rem 3rem !important;
    }
   
}

/* Para tablets y pantallas medianas (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .login-full {
        height: 100vh;
        width: 100vw;
        overflow-y: auto;
        align-items: stretch;
    }

    .login-card-full {
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .row-full {
        flex-direction: column;
        height: 100%;
    }

    .col-imagen {
        min-height: 35vh !important;
        height: auto;
        flex: 0 0 35vh;
    }

    .col-login {
        flex: 1;
        padding: 2rem 2.5rem !important;
        min-height: 65vh;
    }

    .overlay-azul h2 {
        font-size: 2.2rem;
        border-left-width: 6px;
        padding-left: 1.5rem;
    }

    .overlay-azul h2 small {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .login-header h3 {
        font-size: 1.8rem;
    }

    .login-header p {
        font-size: 0.95rem;
    }

    .logo {
        width: 25%;
    }
}

/* Móviles y pantallas pequeñas (≤767px) */
@media (max-width: 767.98px) {
    .login-full {
        height: 100vh;
        width: 100vw;
        overflow-y: auto;
        /* permitir scroll si es necesario */
        align-items: stretch;
    }

    .login-card-full {
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .row-full {
        flex-direction: column;
        height: 100%;
    }

    .col-imagen {
        min-height: 30vh !important;
        height: auto;
        flex: 0 0 30vh;
    }

    .col-login {
        flex: 1;
        padding: 1.8rem 1.5rem !important;
        min-height: 60vh;
    }

    .overlay-azul h2 {
        font-size: 1.8rem;
        border-left-width: 5px;
        padding-left: 1rem;
    }

    .overlay-azul h2 small {
        font-size: 0.9rem;
        margin-top: 0.4rem;
    }

    .login-header h3 {
        font-size: 1.6rem;
    }

    .login-header p {
        font-size: 0.95rem;
    }

    .btn-ingresar {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .footer-login {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .logo {
        width: 30%;
    }
}

/* Ajuste para pantallas muy pequeñas (≤400px) */
@media (max-width: 400px) {
    .col-imagen {
        min-height: 25vh !important;
        flex: 0 0 25vh;
    }

    .overlay-azul h2 {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }

    .col-login {
        padding: 1.2rem 1rem !important;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .form-control {
        padding: 0.65rem 0.8rem 0.65rem 0.3rem;
        font-size: 0.95rem;
    }

    .logo {
        width: 20%;
    }
}