@font-face {
    font-family: 'Roboto Condensed';
    src: url(./font/RobotoCondensed-VariableFont_wght.ttf) format(truetype),
         url(./font/RobotoCondensed-Italic-VariableFont_wght.ttf) format(truetype);
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-width: 100vw;
    background:  #aaa;
    margin-top: 0;
    /* margin-top: 75px; */
    margin-bottom: -3%;
    padding: 7% 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.search {
    box-shadow: 0 0 25px #aee;
}

.account {
    position: relative;
    width: 90%;
    max-width: 750px;
    height: 450px;
    margin: 0 auto;
    background: transparent;
    border: 2px solid #aee;
    box-shadow: 0 0 25px #aee;
    overflow: hidden;
}

.account .form-box {
    position: absolute;
    top: 0;
    width: 42%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account .form-box.login {
    left: 0;
    padding: 0 60px 0 40px;
}

.account .form-box.login .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition: 0.7s ease;
    transition-delay: calc(0.1s * var(--j));
}

.account.active .form-box.login .animation {
    transform: translateX(-120%);
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(0.1s * var(--i));
}

.account .form-box.register {
    right: 0;
    padding: 0 40px 0 60px;
    pointer-events: none;
}

.account.active .form-box.register {
    pointer-events: auto;
}

.account .form-box.register .animation {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
    transition: 0.7s ease;
    transition-delay: calc(0.1s * var(--j));
}

.account.active .form-box.register .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(0.1s * var(--i));
}

.form-box h2 {
    font-size: 32px;
    color: #fff;
    text-align: center;
}

.form-box .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 25px 0;
}

.input-box input {
    width: 295px;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 2px solid #fff;
    padding-right: 23px;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    transition: 0.5s;
}

.input-box input:focus,
.input-box input:valid {
    border-bottom-color: #aee;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: -5px;
    color: #aee;
}

.input-box i {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 18px;
    color: #fff;
    transition: 0.5s;
}

.input-box input:focus~i,
.input-box input:valid~i {
    color: #aee;
}

.btn {
    position: relative;
    width: 100%;
    height: 45px;
    background: transparent;
    border: 2px solid #aee;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: linear-gradient(#081b29, #aee, #081b29, #aee);
    z-index: -1;
    transition: 0.5s;
}

.btn:hover::before {
    top: 0;
}

.btn:active::before {
    top: -200%;
}

.form-box .logreg-link {
    font-size: 14.5px;
    color: #fff;
    text-align: center;
    margin: 20px 0 10px;
}

.logreg-link p a {
    color: #aee;
    text-decoration: none;
    font-weight: 600;
}

.logreg-link p a:hover {
    text-decoration: underline;
}

.account .info-text {
    position: absolute;
    top: 0;
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account .info-text.login {
    right: 0;
    text-align: right;
    padding: 0 40px 60px 150px;
}

.account .info-text.login .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition: 0.7s ease;
    transition-delay: calc(0.1s * var(--j));
}

.account.active .info-text.login .animation {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(0.1s * var(--i));
}

.account .info-text.register {
    left: 0;
    text-align: left;
    padding: 0 150px 60px 40px;
    pointer-events: none;
}

.account.active .info-text.register {
    pointer-events: auto;
}

.account .info-text.register .animation {
    transform: translateX(-120%);
    opacity: 0;
    filter: blur(10px);
    transition: 0.7s ease;
    transition-delay: calc(0.1s * var(--j));
}

.account.active .info-text.register .animation {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(0.1s * var(--i));
}

.info-text h2 {
    font-size: 36px;
    color: #fff;
    line-height: 1.3;
    text-transform: uppercase;
}

.info-text p {
    font-size: 16px;
    color: #fff;
}

.account .bg-animate {
    position: absolute;
    top: -4px;
    right: 0;
    width: 850px;
    height: 600px;
    background: linear-gradient(45deg,#081b29, #aee);
    border-bottom: 3px solid #aee;
    transform: rotate(10deg) skewY(40deg);
    transition: 1.5s ease;
    transform-origin: bottom right;
    transition-delay: 1.6s;
}

.account.active .bg-animate {
    transform: rotate(0deg) skewY(0deg);
    transition-delay: 0.5s;
}

.account .bg-animate2 {
    position: absolute;
    top: 100%;
    left: 250px;
    width: 850px;
    height: 700px;
    background: #aaa;
    border: 3px solid #aee;
    transform: rotate(0deg) skewY(0deg);
    transform-origin: bottom left;
    transition: 1.5s ease;
    transition-delay: 0.5s;
}

.account.active .bg-animate2 {
    transform: rotate(-11deg) skewY(-41deg);
    transition-delay: 1.2s;
}

@media only screen and (max-width: 850px) {
    .account {
        max-width: 90%;
        margin-top: 30px;
    }

    .account .form-box {
        width: 35%;
    }

    .input-box input {
        width: 92%;
    }
}

@media only screen and (max-width: 740px) {
    .account .bg-animate {
        transform: rotate(10deg) skewY(43deg);
    }
    .account.active .bg-animate2 {
        transform: rotate(-11deg) skewY(-44deg);
    }
}

@media only screen and (max-width: 680px) {

    .account h2 {
        font-size: 1.6rem;
    }

    .account p {
        font-size: 0.8rem;
    }

    .account .bg-animate {
        transform: rotate(10deg) skewY(48deg);
    }
    .account.active .bg-animate2 {
        transform: rotate(-11deg) skewY(-50deg);
    }
}

@media only screen and (max-width: 540px) {

    .account .form-box {
        width: 80%;
        height: 100%;
    }

    .info-text.login, .info-text.register {
        display: none;
    }

    .bg-animate, .bg-animate2 {
        display: none;
    }
    
    .account .bg-animate, .account.active .bg-animate, .account .bg-animate2, .account.active .bg-animate2 {
        transition: 0.3s ease;
        transition-delay: 0.3s;
    }

    .account .info-text.register .animation, .account .info-text.login .animation {
        transition: 0.3s ease;
    }

    .style-1 {
        transition-delay: 0.5s !important;
    }

    .style-2 {
        transition-delay: 0.6s !important;
    }

    .style-3 {
        transition-delay: 0.7s !important;
    }

    .style-4 {
        transition-delay: 0.8s !important;
    }

    .style-5 {
        transition-delay: 0.9s !important;
    }

    .style-6 {
        transition-delay: 1s !important;
    }
}

@media only screen and (max-width:400px) {
    .account .form-box {
        margin-left: -2%;
    }
}

@media only screen and (max-width:350px) {
    .account .form-box {
        margin-left: -4%;
    }
}
