﻿body {
    font-family: "Montserrat", sans-serif;
    background: #f7edd5;
    /*    height: 100vh;
*/ overflow-x: hidden;
    min-height: 100svh; /* viewport real en móviles modernos */
    height: auto;
}

html, body {
    display: flex;
    flex-direction: column;
}


.container {
    max-width: 800px;
}

a {
    display: inline-block;
    text-decoration: underline;
    color: rgb(0, 150, 64);
}

input {
    outline: none !important;
}

h1 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 700;
}

@media(min-width:790px) {
    section#formHolder {
        margin-top: 55px;
        padding: 0;
        min-height: calc(100vh - 55px);
        max-height: none;
        flex: 1;
    }
}

.brand {
    padding: 20px;
    background: url(https://goo.gl/A0ynht);
    background-size: cover;
    background-position: center center;
    color: #fff;
    min-height: 600px;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(1, -0.375, 0.285, 0.995);
    z-index: 1000;
    border-top-left-radius: 45px !important;
    border-bottom-right-radius: 45px !important;
}

    .brand.active {
        width: 100%;
    }

    .brand::before {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: rgba(0, 150, 64, 1);
        z-index: -1;
        border-top-left-radius: 45px !important;
        border-bottom-right-radius: 45px !important;
    }

    .brand a.logo {
        color: #f95959;
        font-size: 20px;
        font-weight: 700;
        text-decoration: none;
        line-height: 1em;
    }

        .brand a.logo span {
            font-size: 30px;
            color: #fff;
            transform: translateX(-5px);
            display: inline-block;
        }

    .brand .heading {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        transition: all 0.6s;
    }

        .brand .heading.active {
            top: 100px;
            left: 100px;
            transform: translate(0);
        }

        .brand .heading h2 {
            font-size: 70px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 0;
        }

        .brand .heading p {
            font-size: 15px;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 2px;
            /*white-space: 4px;*/
            font-family: "Raleway", sans-serif;
            margin-top: 10px;
        }

    .brand .success-msg {
        width: 100%;
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 60px;
    }

        .brand .success-msg p {
            font-size: 25px;
            font-weight: 400;
            font-family: "Raleway", sans-serif;
        }

        .brand .success-msg a {
            font-size: 12px;
            text-transform: uppercase;
            padding: 8px 30px;
            background: #f95959;
            text-decoration: none;
            color: #fff;
            border-radius: 30px;
        }

        .brand .success-msg p, .brand .success-msg a {
            transition: all 0.9s;
            transform: translateY(20px);
            opacity: 0;
        }

            .brand .success-msg p.active, .brand .success-msg a.active {
                transform: translateY(0);
                opacity: 1;
            }

.form {
    position: relative;
}

    .form .form-peice {
        background: #fff;
        min-height: 600px;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
        color: #bbbbbb;
        padding: 30px 0 60px;
        transition: all 0.9s cubic-bezier(1, -0.375, 0.285, 0.995);
        position: absolute;
        top: 0;
        left: -30%;
        width: 130%;
        overflow: hidden;
       /* border-top-left-radius: 45px !important;*/
        border-bottom-right-radius: 45px !important;
    }

        .form .form-peice.switched {
           /* transform: translateX(-100%);*/
            width: 100%;
            left: 0;
        }

    .form form {
        padding: 0 40px;
        margin: 0;
        width: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

        .form form .form-group {
            margin-bottom: 5px;
            position: relative;
        }

        .form form .CTA a.switch {
            font-size: 13px;
            font-weight: 400;
            color: rgb(0, 150, 64);
            text-decoration: underline;
            transition: all 0.3s;
        }

            .form form .CTA a.switch:hover {
                color: #DF1995;
            }

footer {
    text-align: center;
    margin-top: auto;
}

    footer p {
        color: #777;
    }

        footer p a, footer p a:focus {
            color: #b8b09f;
            transition: all 0.3s;
            text-decoration: none !important;
        }

            footer p a:hover, footer p a:focus:hover {
                color: #f95959;
            }

.form-ctrl {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    padding-left: 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

    .form-ctrl:focus {
        color: var(--bs-body-color);
        background-color: none;
        border-color: black !important;
        outline: 0;
        box-shadow: 0 0 0 .5px rgba(0,150,64,.08) !important;
    }

@media (max-width: 768px) {

    .container {
        overflow: hidden !important;
    }

    section#formHolder {
        padding: 0 !important;
        max-height: none !important;
    }

        /* Panel verde superior */
        section#formHolder .brand {
            min-height: 180px !important;
            height: auto !important;
        }

            section#formHolder .brand::before {
                border-top-left-radius: 0 !important;
                border-bottom-right-radius: 0 !important;
            }

            section#formHolder .brand .heading {
                top: 50% !important;
                left: 50% !important;
                transform: translate(-50%, -50%) !important;
                width: 100%;
                padding: 0 16px;
                text-align: center;
            }

            section#formHolder .brand img {
                height: 58px !important;
                margin-bottom: 10px;
            }

            section#formHolder .brand .heading p {
                font-size: 16px !important;
                line-height: 1.35 !important;
                letter-spacing: 1px;
            }

        /* Contenedor blanco del login */
        section#formHolder .form {
            margin-top: 10px !important;
            width: 100% !important;
            min-height: auto !important;
            margin-left: 0 !important;
        }

            section#formHolder .form .form-peice {
                position: relative !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                transform: none !important;
                min-height: auto !important;
                height: auto !important;
                display: block !important;
                padding: 18px 16px 22px !important;
                border-radius: 18px !important;
                box-sizing: border-box !important;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
                background: #efefef !important;
            }

                section#formHolder .form .form-peice > form {
                    position: static !important;
                    top: auto !important;
                    left: auto !important;
                    transform: none !important;
                    width: 100% !important;
                    margin: 0 !important;
                    padding: 0 !important;
                }

    /* Labels */
    #formHolder .form .form-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 12px 0 8px !important;
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    /* Bloques */
    #formHolder .form .col-sm-12 {
        margin-bottom: 10px !important;
    }

        #formHolder .form .col-sm-12.d-flex {
            flex-wrap: wrap !important;
            gap: 10px !important;
        }

    /* Inputs */
    #formHolder .form input.form-ctrl,
    #formHolder .form select.form-ctrl,
    #formHolder .form textarea {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 15px !important;
        min-height: 44px !important;
    }

    /* CTA */
    #formHolder .form .CTA {
        margin-top: 14px !important;
        text-align: center;
    }

        #formHolder .form .CTA input.buttons-green,
        #formHolder .form .CTA button.buttons-green {
            width: 100% !important;
            height: 40px !important;
        }

        #formHolder .form .CTA .login-link-recuperar,
        #formHolder .form .CTA .link-2 {
            display: inline-block;
            margin-top: 10px !important;
        }
}
    