@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'poppins',sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #ffa500;
    transition: .5s;
}
body.active{
    background: #03a9f4;
}
.container{
    position: relative;
    width: 800px;
    height: 500px;
    margin: 20px;
}
.orangeBG{
    position: absolute;
    top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 420px;
    background: rgba(255,255,255,.2);
    box-shadow: 0 5px 45px rgba(0,0,0,.15);
}
.orangeBG .box{
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.form-box{
    position: absolute;
    background: #fff;
    height: 100%;
    width: 50%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 45px rgba(0,0,0,0.25);
    transition: ease-in-out .5s;  
    overflow: hidden;
}
.form-box.active{
    left: 50%;
}
.box h2{
    color: #fff;
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 10px;
}
.orangeBG .box button{
    padding: 10px 20px;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.form-box .form{
    position: absolute;
    width: 80%;
    transition: .3s;
    padding: 50px;
}
.form-box .signinform{
    transition-delay: .25s;
}
.form-box.active .signinform{
    left: -100%;
    transition-delay: 0;
}
.form-box .signupform{
    left: 100%;
    transition-delay: 0;
}
.form-box.active .signupform{
    left: 0%;
    transition-delay: .1s;
}
.form-box .form form{
    display: flex;
    width: 100%;
    flex-direction: column;
}
.form form input{
    margin-bottom: 20px;
    padding: 10px;
    outline: none;
    border: 1px solid #333;
}
.form form h3{
    text-align: center;
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 20px;
}
.form form input[type="submit"]{
    background: #ffa500;
    border: none;
    max-width: 100px;
    color: #fff;
    cursor: pointer;
}
.form form input[value="Sign Up"]{
    background: #03a9f4;
    border: none;
    max-width: 100px;
    color: #fff;
    cursor: pointer;
}
.btnbefore{
    visibility: hidden;
}
/* ------------------ Responsive parts ------------------ */
@media only screen and (max-width:600px){
    *{
        font-size: 13px;
    }
    .orangeBG .box{
        width: 100%;
    }
    .form-box{
        width: 100%;
        top: -5%;
    }
    .form-box .form{
        width: 70%
    }
    .box{
        display: block;
        justify-content: center;
        align-items: center;
    }
    .form-box.active{
        left: 0;
        height: 110%;
    }
    .formboxafter{
        left: 0;
    }
    .btnbefore{
        visibility: inherit;
    }
    .signinbtnafter{
        position: relative;
        left: 70%;
    }
    .signinbtnafter, .signupbtnafter{
        background: #fff;
        border: 1px solid #ababab;
        padding: 10px 10px;
        border-radius: 6px;
    }
}