@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,500&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins",sans-serif;
}
body{
    height: 100vh;
    width: 100%;
    background: #000;
  
}
.background{
    background: url(bg2.jpg) no-repeat;
    background-position: center;
    background-size:cover ;
    height: 100vh;
    width: 100%;
    filter: blur(10px);
}


.container{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 75%;
    height: 550px;
    margin-top: 20px;
    background: url(bg2.jpg) no-repeat;
    background-position: center;
    background-size:cover ;
    border-radius: 20px;
    overflow: hidden;
    
    
}
.item{
    position: absolute;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    color: #fff;
    background: transparent;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    


}
.item .logo{
    color: #fff;
    font-size: 30px;

}
.text-item h2{
    font-size: 40px;
    line-height: 1;
}
.text-item p{
    font-size: 16px;
    margin: 20px 0;
}
.social-icon a i{
    color: #fff;
    font-size: 24px;
    margin-left: 10px;
    cursor: pointer;
    transition: .5s ease;
}
.social-icon a:hover i{
    transform: scale(1.2);
}
.container .login-section{
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 58%);
    height: 100%;
    color: #fff;
    backdrop-filter: blur(10px);
}

.login-section .form-box{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    
}
.login-section .form-box.register{
    transform: translateX(430px);
    transition: transform .6s ease;
    transition-delay: 0s;
}
.login-section.active .form-box.register{
    transform: translateX(0px);
    transition-delay: .7s;
}

.login-section .form-box.login{
    transform: translateX(0px);
    transition: transform .6s ease;
    transition-delay: 0.7s;
}
.login-section.active .form-box.login{
    transform: translateX(430px);
    transition-delay: 0s;
}



.login-section .form-box h2{
    text-align: center;
    font-size: 25px;
}

.form-box .input-box{
    width: 340px;
    height: 50px;
    border-bottom: 2px solid#fff;
    margin: 30px 0;
    position: relative;
}
.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    padding-right: 28px;


}
.input-box label{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600px;
    pointer-events: none;
    transition: .5s ease;

}
.input-box .icon{
    position: absolute;
    top: 13px;
    right: 0;
    font-size: 19px;
}
.input-box input:focus~ label,
.input-box input:valid~ label{
    top: -5px;
}
.remember-password{
    font-size: 14px;
    font-weight: 500;
    margin: -15px 0 15px ;
    display: flex;
    justify-content: space-between;
}
.remember-password label input{
    accent-color: #fff;
    margin-right: 3px;

}
.remember-password a{
    color: #fff;
    text-decoration: none;
}
.remember-password a:hover{
    text-decoration: underline;
}
.btn{
    background: #fff;
    width: 100%;
    height: 45px;
    outline: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #f72d7a;
    font-size: 16px;
    color: #fff;
    box-shadow: rgba(0,0,0,0.4);

}
.create-account{
    font-size: 14.5px;
    text-align: center;
    margin: 25px;
}
.create-account p a{
    color: #fff;
    font-weight: 600px;
    text-decoration: none;
}
.create-account p a:hover{
    text-decoration: underline;
}


  @media (max-width: 768px) {
    .container {
      width: 90%;
      height: auto;
      flex-direction: column;
      border-radius: 10px;
      overflow-y: auto;
    }
  
    .item {
      position: relative;
      width: 100%;
      height: auto;
      padding: 40px 20px;
      text-align: center;
    }
  
    .text-item h2 {
      font-size: 32px;
    }
  
    .text-item p {
      font-size: 16px;
      background-color: #00000058;
      backdrop-filter: blur(10px);
    }
  
    .social-icon a i {
      font-size: 22px;
      margin: 0 8px;
    }
  
    .container .login-section {
      position: relative;
      width: 100%;
      height: auto;
      backdrop-filter: none;
    }
  
    .login-section .form-box {
      position: relative;
      padding: 20px;
      width: 100%;
      height: auto;
    }


    .form-box .input-box {
      width: 100%;
    }

    .input-box input,
    .input-box label {
      font-size: 16px;
    }

    .btn {
      height: 45px;
      font-size: 16px;
    }

    .remember-password {
      font-size: 14px;
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
    }

    .create-account {
      font-size: 14px;
      margin: 20px 0;
    }

    select#role {
      margin-left: 0;
      margin-top: 5px;
      width: 100%;
    }
}

@media (max-width: 480px) {

    body {
        background: #000;
    }

    .item > .logo {
        font-size: 2rem;
        color: #d4af37;
        backdrop-filter: blur(10px);
        padding: 10px 20px;
    }
    .container {
        width: 95%; /* increased from 75% */
        height: auto; /* allows it to grow naturally */
        padding: 20px 10px;
        margin: 0 auto;
        left: 50%;
        top: 50%;
        transform: translateY(-50%, -50%);
    }

    .item {
        padding: 30px 15px;
        margin-top: 25rem;
        border-radius: 10px;
    }

    .text-item h2 {
        font-size: 30px;
    }

    .text-item p {
        padding: 10px 0;
        font-size: 15px;
        background-color: #00000058;
        backdrop-filter: blur(10px);
    }

    .login-section .form-box {
        padding: 20px 10px;
    }

    .form-box.register{
    transform: translateX(200px);
    transform: translateY(-200px);
    transition: none;
}

    .form-box .input-box {
        width: 100%;
    }

    .btn {
        height: 45px;
        font-size: 15px;
    }

    .remember-password {
        font-size: 13px;
        gap: 8px;
    }

    .create-account {
        font-size: 14px;
    }

    .login-section .form-box.register,
  .login-section .form-box.login {
    display: none;
    transform: none;
    position: relative;
    transition: 0.6s ease;
  }

  .login-section.active .form-box.register {
    display: flex;
  }

  .login-section:not(.active) .form-box.login {
    display: flex;
  }
}
