@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Raleway, sans-serif;
}

body {
    background: linear-gradient(90deg, #ffffff, #ffffff); /* keep or remove the color*/
}


.login {
    width: 320px;
    padding: 21px;
    padding-top: 16px;
}

.login__field {
    padding: 14px 0px;
    position: relative;
}


.login__icon {
    position: absolute;
    top: 30px;
    color: #7875B5;
}

.login__input {
    border: none;
    border-bottom: 2px solid #a98f42; /*#D1D1D4;*/
    background: none;
    padding-left: 24px;
    font-weight: 700;
    width: 75%;
    transition: .2s;
}

    .login__input:active,
    .login__input:focus,
    .login__input:hover {
        outline: none;
        border-bottom-color: #a98f42;
        /* #a8c4c9; /*#6A679E;*/
    }

.col-sm-2, col-form-label {
    width: 40.666667%
}


.login__submit, .register-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.login__submit {
    background: #fff;
    font-size: 14px;
    margin-top: 30px;
    padding: 16px 20px;
    border-radius: 26px;
    border: 1px solid #6f5917; /* #D4D3E8;*/
    text-transform: uppercase;
    font-weight: 700;
    align-items: center;
    width: 70%;
    color: #6f5917;
    /*  #4C489D;*/
    box-shadow: 0px 2px 2px #6f5917;
    cursor: pointer;
    transition: .2s;
}



    .login__submit:active,
    .login__submit:focus,
    .login__submit:hover {
        border-color: #1c1847; /*#6f5917;*/
        outline: none;
    }

.error {
    color: red;
    font-weight: bold;
}

#main {
    overflow: hidden;
    display: flex;
}

#image-container {
    position: relative;
    flex: 3;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    box-sizing: border-box;
}

#login-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 1;
}

.login_details {
    margin-top: 50px;
}



/* ===== User Type (Radio Buttons) ===== */
.user-type {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.user-type-label {
    font-weight: 700;
    color: #6f5917;
    display: block;
    margin-bottom: 10px;
}

.user-type-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #6f5917;
    font-weight: 600;
}

/* ===== Register Button ===== */
.register-btn {
    background: #f8f8f8;
    color: #6f5917;
    border-color: #6f5917;
    box-shadow: 0px 2px 2px #6f5917;
    margin-top: 15px;
}

    .register-btn:hover {
        border-color: #1c1847;
        color: #1c1847;
    }

/* ===== Forgot Password ===== */
.forgot-password {
    margin-top: 15px;
}

    .forgot-password a {
        color: #6f5917;
        font-size: 13px;
        text-decoration: none;
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }



/* Overlay background */
#register-overlay-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    transition: opacity 0.3s ease;
}

/* Registration form overlay */
#register-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    width: 400px;
    z-index: 999;
}

    #register-overlay.active,
    #register-overlay-bg.active {
        display: block;
    }

    #register-overlay h4 {
        color: #6f5917;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    #register-overlay .form-control {
        border: none;
        border-bottom: 2px solid #a98f42;
        border-radius: 0;
        font-weight: 600;
    }

        #register-overlay .form-control:focus {
            box-shadow: none;
            border-color: #6f5917;
        }

    #register-overlay .btn {
        background: #6f5917;
        color: white;
        border-radius: 25px;
        font-weight: 700;
        width: 100%;
    }

        #register-overlay .btn:hover {
            background: #1c1847;
        }

    #register-overlay .back-login {
        display: block;
        text-align: center;
        margin-top: 1rem;
        color: #6f5917;
        text-decoration: none;
        font-size: 0.9rem;
    }

        #register-overlay .back-login:hover {
            text-decoration: underline;
            color: #1c1847;
        }


.input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 13px;
    color: #6f5917;
    font-weight: 600;
}

    .toggle-password:hover {
        color: #1c1847;
    }




#forgot-password-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}


#forgot-password-inner-div {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    position: relative;
}