.form-box {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: 450px;
    backdrop-filter: blur(40px);
    color: white;
    font-size: 20px;
    border: 2px solid white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .5s ease, height .3s ease-in-out;
    margin: 0 auto;
}
.form-box form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform .3s ease;
}
.form-box .register-form{
    transform: translateX(-100%);
    opacity: 0;
}
.close-icon{
    position: absolute;
    top: 0;
    right: 0;
    font-size: 35px;
    cursor: pointer;
    z-index: 2;
    padding: 5px;
    background-color: #b934d0;
    border-bottom-left-radius: 16px;
}
.form-box form h1{
    font-size: 35px;
}
.input-box{
    width: 76%;
    display: flex;
    justify-content: space-between;
    position: relative;
    border-bottom: 2px solid white;
    margin: 25px 0px;
    padding: 0px 4px 10px 4px;
}
.input-box:first-of-type{
    margin-top: 32px;
}
.input-box input{
    width: 85%;
    position: absolute;
    color: white;
    font-size: 16px;
    background: none;
    border: none;
    outline: none;
}
.input-box label{
    transition: .4s;
    font-size: 17px;
}
.input-box input:focus ~ label,
.input-box input:valid ~ label{
    transform: translateY(-27px);
}
.input-box ion-icon{
    font-size: 25px;
}
.checkbox{
    width: 76%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checkbox h5{
    font-size: 14px;
    font-weight: 100;
    cursor: pointer;
    user-select: none;
}
.register-form .checkbox{
    display: unset;
}
.checkbox label{
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}
.checkbox input{
    cursor: pointer;
    margin-right: 3px;
}
.checkbox span{
    display: flex;
}
.submit-btn{
    width: 78%;
    height: 38px;
    cursor: pointer;
    border-radius: 6px;
    margin: 15px 0px 22px 0px;
    border: none;
    font-size: 16px;
}
.login-register p{
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.login-register a{
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
}
.login-register a:hover{
    text-decoration: underline;
}
.change-form{
    height: 500px;
}
.change-form .login-form{
    transform: translateX(100%);
    opacity: 0;
}
.change-form .register-form{
    transform: translateX(0%);
    opacity: 1;
}
@media (min-width: 768px) {
    .form-box {
        width: 400px;
    }
}