@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background: url("../images/poza multe licee.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 110vh;
    background: rgba(39,39,39,0.4);
}


.nav {
  width: 100%;
  height: 72px;
  background: #9661b8;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
}
.nav-logo p{
    color: yellow;
    font-size: 25px;
    font-weight: 600;
}

.nav-menu ul{
    display: flex;
}

.nav-menu ul li{
    list-style-type: none;
}

.nav-menu ul li .link{
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    padding-bottom: 15px;
    margin: 0 25px;
}

.link:hover,
.link.active{
    border-bottom: 2px solid #fff;
}

.nav-button .btn{
    width: 130px;
    height: 40px;
    font-weight: 500;
    background: rgba(39,39,39,0.4);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s ease;
}

.btn:hover{
    background: rgba(255, 255, 255, 0.3);
}

#registerBtn{
    margin-left: 15px;
}

.btn.white-btn{
    background: rgba(255, 255, 255, 0.7);
}

.btn.white-btn:hover{
    background: rgba(255, 255, 255, 0.5);
}

.nav-menu-btn{
    display: none;
}

.form-box{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 512px;
    z-index: 2;
}
.login-container{
    position: absolute;
    left: 4px;
    width: 500px;
    display: flex;
    flex-direction: column;
    transition: .5s ease-in-out;
    /*background-color: #9661b8c7;*/
}

.register-container{
    position: absolute;
    right: -520px;
    width: 500px;
    display: flex;
    flex-direction: column;
    transition: .5s ease-in-out;
	 /* background-color: #9661b8c7;*/

}

.top span{
    color: white;
    font-size: small;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

.top span a{
    font-weight: 500;
    color: #fff;
    margin-left: 5px;
}

header{
    color: #fff;
    font-size: 30px;
    text-align: center;
    padding: 10px 0 30px 0;
}

.two-forms{
    display: flex;
    gap: 10px;
}

.input-box{
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.input-field{
    font-size: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    height: 50px;
    width: 100%;
    padding: 0 10px 0 45px;
    border: none;
    border-radius: 30px;
    outline: none;
    transition: .2s ease;
}
.input-field:hover, .input-field:focus{
    background: rgba(255, 255, 255, 0.24);
}
::-webkit-input-placeholder{
    color: #fff;
}

.input-box i{
    position: relative;
    top: -35px;
    left: 17px;
    color: #fff;
}
.submit{
    font-size:15px;
    font-weight:500;
    color: black;
    height: 45px;
    width: 100%;
    border: none;
    border-radius:30px;
    outline:none;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: .3s ease-in-out;

}
.submit:hover{
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 1px 5px 7px 1px rgba(0, 0, 0, 0.2);
}
.two-col{
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: small;
    margin-top:10px;
}

.two-col .one{
    display: flex;
    gap:5px;
}
.two label a{
    text-decoration: none;
    color: #fff;
}
.two label a:hover{
    text-decoration: underline;
}

@media  only screen and (max-width: 768px){
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        top:100px;
    }
    .nav-menu{
        position: absolute;
        display: flex;
        top:-800px;
        justify-content: center;
        background: rgba(255, 255, 255,0.2);
        width: 100%;
        height: 90vh;
        backdrop-filter: blur(20px);
        transition: .3s;
    }
    .nav-menu ul{
        flex-direction: column;
        text-align: center;
    }
    .nav-menu-btn{
        display: block;
    }
    .nav-menu-btn i{
        font-size: 25px;
        color: #fff;
        padding: 10px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: .3s;
    }
    .nav-meniu-t i:hover{
        background: rgba(255, 255, 255, 0.15);
    }
}

@media  only screen and (max-width:540px){
    .wrapper{
        min-height: 100vh;
    }
    .form-box{
        width: 100%;
        height: 500px;
    }
    .register-container , .login-container{
        width: 500px;
        padding: 0 20px;
    }
    .register-container .two-forms{
        flex-direction: column;
        gap:10px;
    }
    
}

.form-box {
    position: relative;
    width: 512px;
    height: 520px;
    overflow: hidden;
}

.login-container {
    position: absolute;
    left: 4px;
    width: 500px;
    transition: 0.5s ease-in-out;
}

.register-container {
    position: absolute;
    right: -520px;
    width: 500px;
    transition: 0.5s ease-in-out;
}

.message{
    position:relative;
    width:420px;
    margin:15px auto;
    padding:16px 50px 16px 18px;
    border-radius:10px;
    font-size:15px;
    font-weight:500;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    animation:fadeIn .4s;
    transition:opacity .6s, transform .6s;
}

.message.hide{
    opacity:0;
    transform:translateY(-15px);
}

.close{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    font-size:22px;
    font-weight:bold;
    color:#555;
}

.close:hover{
    color:#000;
}

.info{
    background:#e8f4fd;
    border-left:6px solid #2196F3;
    color:#0d47a1;
}

.success{
    background:#edf9ed;
    border-left:6px solid #4CAF50;
    color:#2e7d32;
}

.warning{
    background:#fff8e1;
    border-left:6px solid #ff9800;
    color:#e65100;
}

.error{
    background:#fdecec;
    border-left:6px solid #f44336;
    color:#b71c1c;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
