﻿/* --- Estructura principal --- */


:root {
    --primary-alpha: rgba(1, 59, 117, 0.6);
    --secondary-alpha: rgb(9, 56, 104, 0.9);
}


body {
    margin: 0;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
}

/* --- Fondo de toda la pantalla --- */
.fondo-container {
    position: fixed; /* que quede detrás de todo */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/login/login.jpg) !important;
    background-size: cover; /* ocupa toda la pantalla */
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* detrás del contenido */
}

/* --- Capa de opacidad encima de la imagen --- */
.fondo-opacity {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-alpha)
}

.header-login {
    background-color: rgb(255, 255, 255);
    height: 8%;
    padding: 1rem 2rem; /* mantiene márgenes internos iguales */
    display: flex;
    justify-content: center; /* centra todo el bloque de logos */
    align-items: center;
}

/* Contenedor de los logos */
.logo-img {
    display: flex;
    justify-content: space-between; /* uno a la izquierda y otro a la derecha */
    align-items: center;
    width: 100%;
    max-width: 900px; /* evita que los logos se peguen a los bordes en pantallas grandes */
}

/* Logo izquierdo */
.logo {
    width: 220px;
    height: auto;
}

/* Logo derecho */
.logo2 {
    width: 50px;
    height: auto;
}

/* --- Adaptación Responsive --- */
@media (max-width: 1024px) {
    .logo {
        width: 200px;
    }

    .logo2 {
        width: 40px;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 200px;
    }

    .logo2 {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 180px;
    }

    .logo2 {
        width: 40px;
    }
}


.footer-login {
    background-color: var(--secondary-alpha);
    color: rgb(245, 252, 254);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    width: 100%;
}

@media only screen and (max-width: 920px) {
    .header-login,
    .footer-login {
        display: none !important;
    }
}


.group > i {
    width: 20px;
    float: right;
    margin-top: -20px;
    margin-right: 3px;
}

.wrapper {
    /*    background: rgb(245, 252, 254);
    overflow: hidden;
    position: relative;
   /* margin-bottom: -100px;*/
    flex: 1;
    display: flex;
    height: auto;
}

/*
       .wrapper:after {
        right: 0;
        width: 64.6%;
        background-size: 140vh 86%;
    }

    .wrapper:after, .skew-block:after {
        content: '';
        position: absolute;
        height: 117%;
        top: 0;
    }

   */
.intro .left-ovh {
    width: 32.4%;
    overflow: hidden;
    height: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6rem;
}

.left-ovh {
    width: 32.4%;
    /*   overflow: hidden;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;*/
}

.left-side {
    background: rgb(245, 252, 254);
    position: relative;
    text-align: center;
}

.card-login {
    background: rgb(245, 252, 254);
}
/*.intro {
    width: 100%;
    
    height: calc(100vh + 16vw);
    transition: height 1s 1s;
    position: relative;
    z-index: 2;
    overflow: hidden;
}*/
/*
    .intro .triangle {
        position: absolute;
        background: #fff;
        left: 0;
        bottom: -123.1%;
        height: 100%;
        -webkit-transform: skewY(19deg) translateY(-50%);
        transform: skewY(19deg) translateY(-50%);
        width: 65vw;
        z-index: -3;
    }

        .intro .triangle.right {
            left: auto;
            right: 0;
            bottom: -100%;
            -webkit-transform: skewY(-11deg) translateY(-31%);
            transform: skewY(-11deg) translateY(-31%);
        }*/
.form {
    padding: 2vh 2vw;
}

@media only screen and (max-width: 1280px) {
    .form {
        padding: 2vh 2vw !important;
    }
}

h1 {
    margin: 1vh 0px 1vh 0px;
}

/*.logo {
    max-width: 18vw;
    max-height: 8vh;
}*/

.forget-password-label {
    color: rgb(44, 59, 149);
    font-size: 14px;
    font-weight: 600;
}

.button-submit {
    margin: 26px 0px;
    background-color: rgb(44, 59, 149);
    width: 100%;
    font-size: 18px;
    color: whitesmoke;
    letter-spacing: 0.5px;
}

    .button-submit:focus {
        outline-color: transparent;
    }

.group {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 2vh 0px;
}

input {
    display: block;
    width: 100%;
    border: none;
    border-radius: 0;
    color: black;
    background: rgb(245, 252, 254) !important;
    font-size: 13px;
    transition: .3s ease;
    padding: 5px 0px 5px 0px;
    margin-top: 25px;
}

.bar:before {
    transform: translateX(0);
}

.bar {
    background: black;
    content: '';
    width: 100%;
    height: 1px;
    position: relative;
}

input:focus {
    outline: none;
}

.form-control-feedback, .field-validation-error {
    position: absolute;
    top: .5rem;
    z-index: 2;
    display: block;
    text-align: center;
    pointer-events: none;
    color: red;
    margin-top: -5px !important;
}

.text-danger {
    padding: 1px 0px;
}

div ul {
    position: absolute;
    list-style-type: none;
    padding-left: 0px;
}

.ico {
    width: 20px;
    float: right;
    margin-top: -25px;
    margin-right: 5px;
}

html {
    user-select: none;
}

/*hide figures*/
@media only screen and (max-width: 1024px) {

    .form {
        padding: 2vh 2vw !important;
    }

    h1 {
        font-size: 2rem;
    }

    button {
        font-size: 13px;
    }

    .logo {
        max-width: 75vw;
    }

    .intro {
        height: calc(100vh) !important;
    }

    .triangle {
        display: none;
    }

    .left-side {
        height: 100%;
        /*        height: auto;
*/
    }

    .left-ovh {
        overflow-y: auto !important;
        max-height: -webkit-fill-available;
    }

    .wrapper:after {
        display: none !important;
    }

    .intro .left-ovh {
        width: 63% !important;
        height: auto !important
    }

    @media (orientation: landscape) {
        h1 {
            font-size: 15px;
            margin: 4vh 0px 0vh 0px;
        }

        input {
            font-size: 10px;
        }

        .button-submit {
            font-size: 13px;
            margin: 10px 0px;
            padding: 7px;
        }

        .forget-password-label {
            font-size: 12px;
        }

        @media (max-height: 500px) {
            label {
                font-size: 10px;
            }

            input {
                padding: 0px 0px 5px 0px;
            }

            .group {
                margin: 1vh 0px;
            }
        }
    }

    .m-login__wrapper {
        height: auto;
    }

    .left-side > :not(.m-login__wrapper) {
        bottom: 10px !important;
        left: 10px !important;
    }

    @media (min-height: 200px) {
        .form {
            padding: 2vh 3vw 0vh 3vw !important;
        }
    }

    @media (min-height: 300px) {
        .form {
            padding: 3vh 4vw 0vh 4vw !important;
        }
    }

    @media (min-height: 400px) {
        .form {
            padding: 3vh 5vw 0vh 5vw !important;
        }
    }

    @media (min-height: 500px) {
        .form {
            padding: 4vh 4vw 4vh 4vw !important;
        }
    }

    @media (min-height: 600px) {
        .form {
            padding: 8vh 8vw 8vh 8vw !important;
        }
    }

    @media (min-height: 700px) {
        .form {
            padding: 8vh 8vw 8vh 8vw !important;
        }
    }
}

/*figures*/
@media (min-width: 1025px) {
    .container-shape {
        position: absolute;
        filter: drop-shadow(5px -5px 6px rgba(0,0,0,0.4));
        z-index: -3;
    }

        .container-shape.right {
            filter: drop-shadow(-5px -5px 6px rgba(0,0,0,0.4));
        }

    .shape {
        background: rgb(48,188,225);
        transform: rotate(19deg);
    }

        .shape.right {
            background: rgba(44, 59, 149,0.7);
            transform: rotate(-11deg);
        }


    .container-shape.one {
        top: 7.55%;
        left: 25.25%;
    }

    .container-shape.two {
        top: 58.4%;
        left: 8.8%;
    }

    .container-shape.three {
        top: 7.74%;
        left: 67.8%;
    }

    .container-shape.four {
        top: 19.2%;
        left: 85.4%;
    }

    .container-shape.five {
        top: 53.7%;
        left: 72.1%;
    }

    .shape.one {
        -webkit-clip-path: polygon(0% 0%, 68% 0%, 100% 100%,32% 100%);
        clip-path: polygon(0% 0%, 68% 0%, 100% 100%,32% 100%);
        width: 5vw;
        height: 3vh;
    }

    .shape.two {
        -webkit-clip-path: polygon(0% 0%, 68% 0%, 100% 100%,32% 100%);
        clip-path: polygon(0% 0%, 68% 0%, 100% 100%,32% 100%);
        width: 18vw;
        height: 12vh;
    }

    .shape.three {
        -webkit-clip-path: polygon(29% 0%, 100% 0%, 71% 100%,0% 100%);
        clip-path: polygon(29% 0%, 100% 0%, 71% 100%,0% 100%);
        width: 5vw;
        height: 4vh;
    }

    .shape.four {
        -webkit-clip-path: polygon(29% 0%, 100% 0%, 71% 100%,0% 100%);
        clip-path: polygon(29% 0%, 100% 0%, 71% 100%,0% 100%);
        width: 8vw;
        height: 7vh;
    }

    .shape.five {
        -webkit-clip-path: polygon(29% 0%, 100% 0%, 71% 100%,0% 100%);
        clip-path: polygon(29% 0%, 100% 0%, 71% 100%,0% 100%);
        width: 22vw;
        height: 18vh;
    }
}
