html,
body,
main {
    height: 100%;
}

* {
    box-sizing: border-box;
}

:root {
    --switches-bg-color: #f0f0f0;
    --switches-label-color: #7a7a7a;
    --switch-bg-color: #3b89ff;
    --switch-text-color: #f0f0f0;
}

.switches-container {
    margin-bottom: 40px;
    width: 400px;
    position: relative;
    display: flex;
    padding: 0;
    position: relative;
    background: var(--switches-bg-color);
    line-height: 3rem;
    border-radius: 3rem;
    margin-left: auto;
    margin-right: auto;
}

/* input (radio) for toggling. hidden - use labels for clicking on */
.switches-container input {
    visibility: hidden;
    position: absolute;
    top: 0;
}

/* labels for the input (radio) boxes - something to click on */
.switches-container label {
    font-size: 14px;
    width: 50%;
    padding: 0;
    margin: 0;
    text-align: center;
    cursor: pointer;
    color: var(--switches-label-color);
}

.switch-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    padding: 0.15rem;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.switch {
    border-radius: 3rem;
    background: var(--switch-bg-color);
    height: 100%;
}

.switch div {
    font-size: 14px;
    width: 100%;
    text-align: center;
    opacity: 0;
    display: block;
    color: var(--switch-text-color);
    transition: opacity 0.2s cubic-bezier(0.77, 0, 0.175, 1) 0.125s;
    will-change: opacity;
    position: absolute;
    top: 0;
    left: 0;
}

.switches-container input:nth-of-type(1):checked~.switch-wrapper {
    transform: translateX(0%);
}

.switches-container input:nth-of-type(2):checked~.switch-wrapper {
    transform: translateX(100%);
}

.switches-container input:nth-of-type(1):checked~.switch-wrapper .switch div:nth-of-type(1) {
    opacity: 1;
}

.switches-container input:nth-of-type(2):checked~.switch-wrapper .switch div:nth-of-type(2) {
    opacity: 1;
}

.formUser #panel-left {
    display: flex !important;
    align-items: center;
    background-color: #3b89ff;
    background: url(../img/fondo-login.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.formUser #panel-right {
    display: grid !important;
    align-items: center;
    background-color: #fff;
}

.formUser h1 {
    color: #fff;
    font-size: 60px;
    font-weight: 900;
}

.formUser h2 {
    color: #3b89ff;
    font-size: 40px;
    font-weight: 700;
}

.formUser #panel-right form input {
    background-color: unset;
    font-size: 14px;
    color: #7a7a7a;
    border: 1px solid #3b89ff;
    height: 44px;
    box-shadow: none;
    text-align: center;
    font-weight: 400;
}

.formUser form .btn.btn-primary {
    border: 0 !important;
    border-radius: 50px !important;
    background-color: #3b89ff !important;
    padding: 0px 40px !important;
    color: #fff !important;
    font-weight: 400 !important;
}

.formUser .links a {
    color: #3b89ff;
}

@media only screen and (max-width: 767px) {
    .formUser #panel-left {
        display: none !important;
    }

    .switches-container {
        width: 320px;
    }

    .switches-container label {
        font-size: 13px;
    }
}
