html, body{
    overflow: hidden;
}

header{
    box-shadow: none;
    position: absolute;
    width: 100%;
    z-index: 10;
}

/* Main Section */
main{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.6)
      ),
      url(../../Images/login-bg.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

/* Login Form */
.wrapper{
    width: 420px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border-radius: 10px;
    padding: 30px 40px;
}
.wrapper h1{
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Input Container */
.wrapper .input-box{
    position: relative;
    width: 100%;
    margin: 30px 0;
}
.wrapper .input-box input{
    width: 100%;
    padding: 12px 20px;
    padding-left: 40px;
    background: transparent;
    border: none;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 16px;
    color: #ffffff;
}
.input-box input::placeholder{
    color: #C0C0C0;
}
.input-box input:focus{
    border: 2px dashed white;
    outline: none;
}

/* Input Icon */
.input-box i{
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

/* Remember-Forgot */
.wrapper .remember-forgot{
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    margin: -15px 0 15px;
}
.remember-forgot label input{
    accent-color: #ffffff;
    margin-right: 3px;
}
.remember-forgot a{
    color: #ffffff;
    text-decoration: none;
}
.remember-forgot a:hover{
    text-decoration: underline;
}

/* Login Button */
.wrapper .btn{
    width: 100%;
    height: 45px;
    background: #ffffff;
    border: none;
    outline: none;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 16px;
    color: #333333;
    font-weight: 600;
    background: background-color 0.3s ease;
}
.wrapper .btn:hover{
    background-color: #F5C300;
}

/* Register Link */
.wrapper .register-link{
    font-size: 14.5px;
    text-align: center;
    margin: 20px 0 15px;
}
.register-link p a{
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}
.register-link p a:hover{
    text-decoration: underline;
}

/* Register Form */
#register-form{
    margin-top: 65px;
    width: 600px;
}
#register-form .input-box{
    margin: 10px 0;
}
#register-form .input-box label{
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

/*  Input Row */
.input-row{
    display: flex;
    gap: 8px;
}
.input-row .input-box{
    width: 100%;
}

/* Gender Section */
.input-row.gender{
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.input-row.gender label{
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-right: 20px;
}
.gender-options{
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.gender-options .input-box{
    display: flex;
    align-items: center;
}
.gender-options input[type="radio"]{
    margin-right: 8px;
    accent-color: #F5C300;
    border-radius: 50%;
    cursor: pointer;
    width: 16px;
    height: 16px;
}
.gender-options label{
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.gender-options input[type="radio"]:checked + label{
    font-weight: bold;
    color: #F5C300;
}
.gender-options input[type="radio"]:hover{
    transform: scale(1.1);
}

/* Terms */
#register-form .terms{
    margin: 15px 0;
    font-size: 14px;
    color: #ffffff;
}
#register-form .terms input{
    accent-color: #ffffff;
    margin-right: 8px;
}
#register-form .terms a{
    color: #F5C300;
    text-decoration: none;
    font-weight: 600;
}
#register-form .terms a:hover{
    text-decoration: underline;
}

/* Input Field with Icons */
#register-form .input-box input[type="radio"]{
    width: auto;
    height: auto;
    margin-right: 10px;
}
#register-form .input-box label{
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
}
#register-form .input-box i{
    font-size: 16px;
    margin-right: 5px;
}

/* Error message */
.message-box{
    display: none;
    font-size: 12px;
    padding: 8px 13px;
    border-radius: 5px;
    color: #8B0000;
    background-color: #acbdca;
    text-align: center;
    max-width: 82%;
    margin: 10px auto;
    user-select: none;
    pointer-events: none;
}

/* Show error box */
.message-box.show{
    display: block;
}

.message-box.success{
    background-color: #4CAF50;
}
.message-box span{
    font-weight: bold;
}

/* Media Query */
@media (max-width: 480px){
    .wrapper{
        width: 90%;
        padding: 20px;
    }
    .wrapper h1{
        font-size: 28px;
    }
    .wrapper .input-box input{
        font-size: 14px;
    }
    main{
        padding: 10px;
    }
    #register-form{
        width: 100%;
    }
}

@media (max-width: 768px){
    .wrapper{
        width: 80%;
        padding: 25px;
    }
    .wrapper h1{
        font-size: 32px;
    }
    .wrapper .input-box input{
        font-size: 15px;
    }
    main{
        padding: 20px;
    }
    #register-form{
        width: 100%;
    }
}