﻿

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


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;
    display: none;
}



.wrapper {
    overflow: hidden;
    position: relative;
    /*   background-image: url(../images/login/login2.jpg) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/
    height: 100%;
}


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

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


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

.left-ovh {
    /*    justify-content: center;
*/ /*align-items: center;*/
    width: 35.4%;
    overflow: hidden;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.left-side {
    position: relative;
    text-align: center;
    background-color: 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: 3vh 3vw;
}

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

    .intro .left-ovh {
        margin-top: 6rem;
    }
}

@media only screen and (min-width: 1280px) {
    .intro .left-ovh {
        margin-top: 6rem;
    }
}


h1 {
    margin: 3vh 0px 2vh 0px;
}

h1 {
    color: var(--color-text) !important;
}

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

.forget-password-label {
    color: var(--color-text) !important;
    font-size: 14px;
    font-weight: 600;
}

.button-submit {
    margin: 26px 0px;
    width: 100%;
    font-size: 18px;
    color: whitesmoke !important;
    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;
    background: rgb(245, 252, 254) !important;
    color: black;
    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;
}

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) {
    h1 {
        font-size: 2rem;
    }

    button {
        font-size: 13px;
    }

    .logo {
        max-width: 75vw;
    }

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

    .triangle {
        display: none;
    }

    .left-side {
        height: 100%;
    }

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

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

    .intro .left-ovh {
        width: 100% !important;
        margin-top: 0px;
    }

    @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: 100vh;
    }

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

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

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

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

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

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

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

    @media (min-height: 800px) {
        .form {
            padding: 10vh 13vw 0vh 13vw !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: skewy(19deg);
    }

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

    .container-shape.one {
        top: 7.1%;
        left: 25.9%;
    }

    .container-shape.two {
        top: 58%;
        left: 14.2%;
    }

    .container-shape.three {
        top: 6.75%;
        left: 66.6%;
    }

    .container-shape.four {
        top: 17.9%;
        left: 85.7%;
    }

    .container-shape.five {
        top: 52.4%;
        left: 75.1%;
    }

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

    .shape.two {
        -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%,0% 100%);
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%,0% 100%);
        width: 10vw;
        height: 15vh;
    }

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

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

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