*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    width: 100vw;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    background-color: black;
    overflow: hidden;
}

header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 10px 0;
   width: 100vw;
  
   border-bottom: 2px solid white;
}
.logo{
   width: 100px;
    height: 100%;
}
.logo img{
    width: 100%;
    height: 100%;
}

nav a{
    color: white;
    text-decoration: none;
    margin-right: 30px;
    font-size: 1.3rem;
    padding: 2px 10px;
    font-weight:lighter;
}
 nav a{
   position:relative;
   margin-right: 10px;
   font-family: sans-serif;
   
 }

 nav  a::before{
   content:'';
   background-color: red;
   position:absolute;
   bottom: -2px;
   left: 0;
   height:2px;
   width:0%;
   transition: width ease 0.4s;
 }

 nav  a:hover::before{
   width: 90%;
 }
 nav  a:hover{
   color: red;
 }

/* main section started from here! */
main{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account{
    height:60%;
    width: 30%;
    border: transparent;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items:center;
    padding: 5px 10px;
    background-color: rgb(103, 99, 93);
    gap: 30px;
}
.link{
    width: 100%;

    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}
.link label{
      border: 2px solid transparent;
   
    border-radius: 20px;
     width: 40%;
   text-align: center;
}
.link span{
    font-size: 1.2rem;
    transition: all ease 0.3s;
    cursor: pointer;
}
.signup-btn:hover{
   
    border: 2px solid black;
}
.login-btn:hover{
    border: 2px solid white;
     
}

.login-btn{
    border: 2px solid transparent;
    padding:10px 34px;
    border-radius: 20px;
    background-color: black;
   color: white;
   width: 40%;
   text-align: center;
}
.signup-btn{
    border: 2px  solid transparent;
    padding: 10px 30px;
    border-radius: 20px;
    background-color: red;
  color: white;
  width: 40%;
  text-align: center;
}

#check:checked ~ .box .login{
    transform: translateX(-102%);
    
}
#check:checked ~ .box .signup{
    transform: translateX(-104.5%);
}

hr{
    background-color: rgb(0, 0, 0);
    height: 2px;
    width: 100%;
    border: none;

}
.box{
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

.box .login{
   min-width: 100%;
   transition: all ease-in-out 0.4s;

}

.box .login form input{
    width: 100%;
    height: 2.7rem;
   
    outline: none;
    padding: 10px;
    border: transparent;
}
.login  form .login-button{
    background-color: black;
    color: white;
    font-size:1.2rem;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
   transition: all ease 0.3s;
   cursor: pointer;
   height: 3rem;
   text-align: center;
}
.login-button:hover{
    transform: scale(1.02);
    
}

.box .signup{
    min-width:100%;
 transition: all ease-in-out 0.4s;
 text-align: center;

}

.box .signup input{
    width: 100%;
    height: 2.4rem;
    padding: 10px;
    outline: none;
   
    border: transparent;
}

.signup-button{
    background-color: red;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    cursor: pointer;
}
@media (max-width:1300px) and (min-width: 800px){
    .account{
        width: 40%;
    }
   
}
@media (max-width:800px){
    .account{
        width: 90%;
    }
}
