*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(bckpc.jpeg) rgba(202, 202, 255, 0.1) no-repeat;
    background-size: cover;
    background-position: center;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img{
    width: 40px;
    height: 40px;
}

.navbar a{
    text-decoration: none;
    color: white;
    font-size: 1.1em;
    font-weight: 100;
    margin-left: 40px;
    position: relative;
}
.navbar a::after{
    content:'';
    left: 0;
    position: absolute;
    background: white;
    width: 100%;
    height: 3px;
    border-radius: 6px;
    bottom: -8px;
    transform: scaleX(0);
    transform-origin: right;
    transition: 0.5s;
}
.navbar a:hover::after{
    transform: scaleX(1);
    transform-origin: left;

}

.navbar .login-pop{
    width: 130px;
    height: 50px;
    border-radius: 30px;
    border: 2px solid white;    
    background: transparent;
    color: white;
    font-weight: 100;
    font-size: 1.1em;
    cursor: pointer;
    outline: none;
    margin-left: 40px;
}
.navbar .login-pop:hover{
    background: white;
    color: darkgreen;
    transition: 0.5s;
}


.wrapper{
     position: relative;
     width: 400px;
     height: 440px;
     background: transparent;
     border: 2px solid rgba(255, 255, 255, 0.5);
     border-radius: 20px;
     backdrop-filter: blur(20px);
     box-shadow: 0 0 30px black;
     display: flex;
     justify-content: center;
     align-items: center;
     overflow: hidden;
    transition: transform .3s ease, height .2s ease;
    transform: scale(0);
}
.wrapper.active{
    height: 520px;
}
.wrapper.active-popup{
    transform: scale(1);
}


.wrapper.active .login{
    transition: none;
    transform: translateX(-400px);
}

.wrapper .form-box{
    width: 100%;
    padding: 40px;
}

.wrapper .login{
    transition: .18s ease;
    transform: translateX(0);
}

.wrapper .registration{
    position: absolute;
    transform: translateX(400px);
}
.wrapper.wrapper.active .registration{
   transition: .18s ease;
    transform: translateX(0px);
}

.wrapper .icon-close{
    position: absolute;
    top: 0;
    right: 0;
    background: darkgreen;
    font-size: 2em;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    border-bottom-left-radius: 28px;
    z-index: 1;
}
.form-box h2{
    font-size: 1.7em;
    text-align: center;
    color: darkgreen;
}
.inputbox{
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid darkgreen;
    margin: 30px 0;
}
.inputbox label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: darkgreen;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}
.inputbox input:focus~label,
.inputbox input:valid~label {
    top: -5px; 
}

.inputbox input{
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background: transparent;
    font-size: 1.1em;
    padding: 0 35px 0 5px;
}
.inputbox .icon{
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: darkgreen;
    line-height: 57px;
}

.remember-forgot{
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: darkgreen;
    font-weight: 500;
    margin: -15px 0 15px;
}
.remember-forgot label input{
    accent-color: darkgreen;
    margin-right: 3px;
}
.remember-forgot a {
    text-decoration: none;
    color: darkgreen;
}
.remember-forgot a:hover {
    text-decoration: underline;
}
.btn{
    width: 100%;
    height: 45px;
    background: darkgreen;
    border: none;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 1em;
    font-weight: 500;
}
.login-register{
    font-size: 0.9em;
    color: darkgreen;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}
.login-register a{
    text-decoration: none;
    color: darkgreen;
}
.login-register a:hover{
    text-decoration: underline;
}