body {
    background: #F2F7F9;
}

input {
    outline: none !important;
}

.contenedor {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
}

section#bloques {
    padding: 50px 0;
}

.logo-ini-base {
    padding: 20px 10px;
    background-color: #FFF;
    min-height: 500px;
    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: 9999;
    border-radius: 12px;
}

.logo-login {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 75%;
    max-width: 430px;
    height: 75%;
    max-height: auto;
}

.logo-ini-base.active {
    width: 100%;
}

.logo-ini-base::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.form {
    position: relative;
}

    .form .form-peice {
        background: #18609E;
        min-height: 430px;
        margin-top: 30px;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
        color: #FFF;
        padding: 30px 0;
        transition: all 0.9s cubic-bezier(1, -0.375, 0.285, 0.995);
        position: absolute;
        top: 0;
        left: -30%;
        width: 130%;
        overflow: hidden;
        border-radius: 12px;
    }

        .form .form-peice.switched {
            transform: translateX(-100%);
            width: 100%;
            left: 0;
        }

    .form form {
        padding: 0 40px;
        margin: 0;
        width: 70%;
        position: absolute;
        top: 50%;
        left: 60%;
        transform: translate(-50%, -50%);
    }

        .form form .form-group {
            margin-bottom: 5px;
            position: relative;
        }

            .form form .form-group.hasError input {
                border-color: #F3F9F9 !important;
            }

            .form form .form-group.hasError label {
                color: #F3F9F9 !important;
            }

        .form form label {
            font-size: 16px;
            font-weight: 400;
            text-transform: uppercase;
            transform: translateY(40px);
            transition: all 0.4s;
            cursor: text;
            z-index: -1;
        }

            .form form label.active {
                transform: translateY(10px);
                font-size: 10px;
            }

            .form form label.fontSwitch {
                font-weight: 400;
            }

        .form form input:not([type=submit]) {
            background: none;
            outline: none;
            border: none;
            display: block;
            padding: 10px 0 5px;
            width: 100%;
            border-bottom: 1px solid #D4E0E5;
            color: #FFF;
            font-size: 18px;
            z-index: 1;
        }

            .form form input:not([type=submit]).hasError {
                border-color: #F3F9F9;
            }

        .form form span.error {
            color: #F3F9F9;
            font-size: 12px;
            position: absolute;
            bottom: -20px;
            right: 0;
            display: none;
        }

        .form form input[type=password] {
            color: #FFF;
        }

        .form form .CTA {
            margin-top: 30px;
        }

            .form form .CTA input {
                font-size: 12px;
                text-transform: uppercase;
                padding: 5px 30px;
                background: #F3F9F9;
                color: #fff;
                border-radius: 30px;
                margin-right: 20px;
                border: none;
            }

            .form form .CTA a.switch {
                font-size: 15px;
                font-weight: 400;
                color: #DAE7ED;
                display: inline-block;
                text-decoration: none;
                transition: all 0.3s;
            }

                .form form .CTA a.switch:hover {
                    color: #FFF;
                    text-decoration: underline;
                }



@media (max-width: 767px) {
    .container {
        overflow: hidden;
    }

    section#bloques {
        padding: 0;
    }

        section#bloques div.logo-ini-base {
            min-height: 300px !important;
        }

            section#bloques div.logo-ini-base.active {
                min-height: 100vh !important;
            }

            section#bloques div.logo-ini-base .heading.active {
                top: 100px;
                left: 50%;
                transform: translate(-50%, -50%);
            }

            section#bloques div.logo-ini-base .success-msg p {
                font-size: 16px;
            }

            section#bloques div.logo-ini-base .success-msg a {
                padding: 5px 30px;
                font-size: 10px;
            }

        section#bloques .form {
            width: 100%;
            height: auto;
            min-height: 400px;
        }

            section#bloques .form .form-peice {
                min-height: 360px;
                padding: 0;
                margin: 0;
                top: 0;
                left: 0;
                width: 100% !important;
                transition: all 0.5s ease-in-out;
            }

                section#bloques .form .form-peice.switched {
                    transform: translateY(-100%);
                    width: 100%;
                    left: 0;
                }

                section#bloques .form .form-peice > form {
                    width: 100% !important;
                    padding: 10px 40px;
                    left: 50%;
                }
}

@media (max-width: 480px) {
    section#bloques .form {
        width: 100vw;
        margin-left: 0;
    }

    .logo-ini-base {
        border-radius: 0;
        min-height: 270px;
        padding: 0;
    }

    .logo-login {
        width: 90%;
        height: 90%;
    }

    .form .form-peice {
        min-height: 345px;
        margin-top: -10px;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
        color: #FFF;
        padding: 10px 0;
        top: 0;
        left: -30%;
        width: 130%;
        overflow: hidden;
        border-radius: 0px;
    }
}


@media (max-width: 385px) {
    .logo-ini-base {
        border-radius: 0;
        min-height: 260px;
        padding: 0;
    }

    .logo-login {
        width: 95%;
        height: 95%;
    }

    .form .form-peice {
        min-height: 340px;
        margin-top: -10px;
        padding: 10px 0;
    }
}


footer {
    text-align: center;
}

    footer p {
        color: #777;
        font-size: .9rem;
    }

        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: #E65983;
            }

