@font-face {
    font-family: "poppins";
    src: url(../fonts/Poppins-Medium.ttf);
}

*
{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
    background-image: url(../image.png);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}



.box
{
    width: 500px;
    min-height: 500px;    /* Ensure a minimum height */
    height: auto;         /* Let the box expand as needed */
    padding-bottom: 40px; /* Extra padding at the bottom */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    margin: 0 auto;
    /* Removed top: 60px; */
    border-radius: 40px;
    border: 1px solid #FFFFFF;
    backdrop-filter: blur(10px);

}
h3{
    color: #FFFFFF;
    position: absolute;
    top: 40px;
    font-size: 30px;
    font-family: poppins;
}
#Username
{
    width: 400px;
    height: 50px;
    border-radius: 20px;
    border: none;
    padding-left: 20px;
    font-size: 18px;
    font-family: poppins;
    position: absolute;
    top: 100px;
    border: 3px solid #FFFFFF;
    background-color: transparent;
    color: #FFFFFF;

}
input::placeholder
{
    color: #FFFFFF;
}
#email
{
    width: 400px;
    height: 50px;
    border-radius: 20px;
    border: none;
    padding-left: 20px;
    font-size: 18px;
    font-family: poppins;
    position: absolute;
    top: 200px;
    border: 3px solid #FFFFFF;
    background-color: transparent;
    color: #FFFFFF;

}
    
#pass
{
    width: 400px;
    height: 50px;
    border-radius: 20px;
    border: none;
    padding-left: 20px;
    font-size: 18px;
    font-family: poppins;
    position: absolute;
    top: 300px; /* Adjusted top value */
    border: 3px solid #FFFFFF;
    background-color: transparent;
    color: #FFFFFF;

}
#user
{
z-index: 1;
    position: absolute;
    top: 118px;
    right: 80px;
    color: #FFFFFF;
    font-size: 20px;
    
}

#checkbox
{
    position: absolute;
    top: 368px;
    left: 50px;
    width: 18px;
    height: 18px;
}

.Remember
{
    position: absolute;
    top: 367px;
    left: 78px;
    font-size: 13px;
    color: #FFFFFF;
    font-family: poppins;
}
.forgot
{
    position: absolute;
    top: 367px;
    left: 330px;
    font-size: 13px;
    color: #FFFFFF;
    font-family: poppins;
    text-decoration: none;
}
button
{
    width: 400px;
    height: 50px;
    border-radius: 20px;
    border: none;
    font-size: 18px;
    font-family: poppins;
    position: absolute;
    top: 400px; /* Adjusted top value to avoid overlap */
    border: 1px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease; 

}

button:hover {
    background-color: rgba(255, 255, 255, 0.2); 
    color: #FFFFFF; 
}
.Remember3
{
    position: relative;  
    margin-top: 460px;    
    text-align: center;
    width: 100%;
    font-size: 13px;
    color: #FFFFFF;
    font-family: poppins;
}

/* Link styling within the option */
.login {
    color: #FFFFFF;
    text-decoration: none;
    font-family: poppins;
}
.login:hover {
    text-decoration: underline;
}

#envilope
{
    z-index: 1;
    position: absolute;
    top: 218px;
    right: 80px;
    color: #FFFFFF;
    font-size: 20px;
}
#lock
{
    z-index: 1;
    position: absolute;
    top: 318px;
    right: 80px;
    color: #FFFFFF;
    font-size: 20px;
}
#user_label
{
    position: absolute;
    top: 80px;
    left: 60px;
    font-size: 13px;
    color: red; 
    font-family: poppins;
    text-align: left;
    width: 400px; 
}
#email_label
{
    position: absolute;
    top: 180px;
    left: 60px;
    font-size: 13px;
    color: red; 
    font-family: poppins;
    text-align: left;
    width: 400px; 
}
#pass_label
{
    position: absolute;
    top: 280px;
    left: 60px;
    font-size: 13px;
    color: red; 
    font-family: poppins;
    text-align: left;
    width: 400px; 
}
#eye_icon {
    z-index: 1;
    position: absolute;
    top: 318px;
    right: 80px;
    color: #FFFFFF;
    font-size: 20px;
}

/* --- Responsive adjustments for screens 640px and below --- */
@media screen and (max-width: 640px) {
  .box {
    width: 90%;
    height: auto; 
    top: 40px; 
    border-radius: 20px;
    margin: 0 auto;
    padding-bottom: 30px; 
  }
  
  #Username,
  #email,
  #pass,
  #user_label,
  #email_label,
  #pass_label {
    width: 90%;
    left: 5%;
  }
  
  #user,
  #envilope,
  #lock,
  #eye_icon {
    right: 5%;
    font-size: 18px; 
    display: inline-block; 
  }
  button {
    width: 90%;
    left: 5%;
    font-size: 14px; 
    height: 45px;
  }
  h3 {
    font-size: 26px;
    left: 5%;
    width: 90%;
    text-align: center;
  }
  
  .Remember3 {
    position: relative; 
    top: auto;
    left: auto;
    margin-top: 460px;    
    text-align: center;
    width: 100%;
  }
}

/* --- Additional tweaks for screens 320px and below --- */
@media screen and (max-width: 320px) {
  .box {
    width: 95%;
    height: auto; 
    top: 20px;
    border-radius: 15px;
    margin: 0 auto;
  }
  #Username,
  #email,
  #pass,
  #user_label,
  #email_label,
  #pass_label {
    width: 95%;
    left: 2.5%;
  }
  #user,
  #envilope,
  #lock,
  #eye_icon {
    right: 2.5%;
    font-size: 16px;
    display: inline-block; 
  }
  button {
    width: 95%;
    left: 2.5%;
    font-size: 14px;
  }
  h3 {
    font-size: 22px;
    left: 2.5%;
    width: 95%;
    text-align: center;
  }
}




