@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}
section{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: url('../images/bg.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    animation: animateBg 5s linear infinite;
}
@keyframes animateBg{
    100%{
        filter: hue-rotate(360deg);
    }
}
.box{
    display: flex;
    position: absolute;
    width: 500px;
    padding: 3em;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    transition: all .5s .5s;
    
}
.box.hide {
    transform: scaleY(0);
    visibility: hidden;
    transition: all .5s;
    /* display: none;  */
}
h2{
    font-size: 2rem;
    color: #fff;
    text-align: center;
}
form{
    width: 100%;
}
form h2 {
    position: relative;
}
form h2::before, form h2::after {
    content: "";
    height: 2px;
    background: #d4d4d4;
    position: absolute;
    top: 50%;
    z-index: 2;
}
#login-form h2::before, #login-form h2::after{
    width: 15%;
}
#register-form h2::before, #register-form h2::after{
    width: 20%;
}
form h2::before{
    left: 0;
}
form h2::after{
    right: 0;
}
.input-box{
    position: relative;
    width: 100%;
    margin: 30px 0;
    border-bottom: 2px solid #fff;
}
.password-box{
    margin-bottom: 10px;
}
.input-box label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}
.input-box input:focus~label,
.input-box input:valid~label{
    top: -5px;
}
.input-box input{
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    color: #fff;
    padding: 0 35px 0 5px;
}
.input-box .icon{
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    line-height: 57px;
}
input{
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: #fff !important;
}
.remember-forgot{
    margin: -15px 0 15px;
    font-size: .9em;
    color: #fff;
    display: flex;
    justify-content: space-between;
}
.bx-eye{
    cursor: pointer;
    transition: .5s;
}
.bx-eye:hover{
    transform: scale(1.3);
    transition: .5s;
}
.bx-eye.active{
    color: red;
}
.generate-password{
    margin: 10px 0 15px;
    font-size: .9em;
    color: #fff;
    display: flex;
    justify-content: end;
}
.generate-password a{
    color: #fff;
    text-decoration: none;
}
.generate-password a:hover{
    text-decoration: underline;
}
.remember-forgot label input{
    margin-right: 3px;
}
.remember-forgot a{
    color: #fff;
    text-decoration: none;
}
.remember-forgot a:hover{
    text-decoration: underline;
}
button{
    width: 100%;
    height: 40px;
    background: #fff;
    border: none;
    outline: nine;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    color: #000;
    font-weight: 500;
    transition: .5s;
}
button:hover{
    transform: scale(1.05);
    transition: .5s;
}
button:active{
    background-color: chartreuse;
    transition: .3s;
}
.register-link, 
.login-link{
    font-size: .9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}
.register-link p a,
.login-link p a{
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.register-link p a:hover,
.login-link p a:hover{
    text-decoration: underline;
}
.invalid-feedback{
    margin-bottom: 30px;
    color: red;
}
.password-level-indicator-container{
    width: 100%;
    height: 10px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}
.password-level-indicator{
    height: 100%;
    transition: width .3s;
}
.password-level-text{
    color: #fff;
    text-align: center;
}

@media (max-width: 500px) {

    h2 {
        font-size: 1.1em;
    }
    .login-box, .register-box{
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        padding: 1em;
    }
    /* .input-box{
        width: 290px;
    } */
}