body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ / Edge */
    user-select: none; /* Standard syntax */
}
.main-page {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

    .main-page::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.2);
    }

.leftside-photo {
    flex-grow: 1; /* Takes up remaining space */
}

.main-page > .rightside-form {
    width: auto; /* Auto width */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.glass-effect {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    min-width: 300px; /*added min width*/
}

.form-content {
    padding: 20px;
}

.w-md-75 {
    width: 75%;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .main-page {
        display: block;
        padding: 0;
    }

        .leftside-photo,
        .main-page > .rightside-form {
            width: 100%;
            padding: 2px;
        }

    .glass-effect {
        min-width: auto;
    }

    .form-content {
        padding: 10px;
    }

    .w-md-75 {
        width: 90%;
        margin: 0 auto;
    }
}
/* Rest of your CSS */

.main-page .rightside-form .form-group .forgot-password {
    color: #728090;
}


.main-page .rightside-form .remember-me {
    margin-top: 40px;
    margin-bottom: 40px;
}

/*Account Layout Start*/
.main-page .rightside-form h1 {
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    margin: 40px 0 40px 0;
}

.main-page .rightside-form .form-group {
    position: relative;
    width: 100%;
    height: 50px;
    margin-bottom: 5px;
}

    .main-page .rightside-form .form-group .form-input:focus {
        outline: none;
        border: 1px solid #299B51;
    }

        .main-page .rightside-form .form-group .form-input:focus ~ .form-label,
        .main-page .rightside-form .form-group .form-input:not(:placeholder-shown):not(:focus) ~ .form-label {
            top: -7px;
            left: 1rem;
            z-index: 9;
            font-size: 12px;
            font-weight: 400;
            color: #299B51;
            background: #fff;
            transition: all 0.2s ease-in-out;
        }

    .main-page .rightside-form .form-group .form-label {
        position: absolute;
        font-weight: 400;
        font-size: 15px;
        line-height: 15px;
        left: 1rem;
        top: 16px;
        padding: 0 0.25rem;
        color: #728090;
        background: #fff;
        transition: all 0.3s ease;
    }

.main-page .rightside-form .glass-effect .form-group .form-label {
    color: inherit;
    background: inherit;
}

        .main-page .rightside-form .form-group .form-input {
            position: absolute;
            font-family: inherit;
            font-size: 15px;
            font-weight: 400;
            line-height: inherit;
            top: 0;
            left: 0;
            z-index: 1;
            resize: none;
            width: 100%;
            height: auto;
            padding: 12.5px 15px 13px 20px;
            border-radius: 8px;
            border: 1px solid #E0E1E1;
            color: #000;
            background: transparent;
            transition: all 0.2s ease-in-out;
        }

        .main-page .rightside-form .form-group .form-input::-moz-placeholder {
            opacity: 0;
            visibility: hidden;
            color: transparent;
        }

        .main-page .rightside-form .form-group .form-input:-ms-input-placeholder {
            opacity: 0;
            visibility: hidden;
            color: transparent;
        }

        .main-page .rightside-form .form-group .form-input::placeholder {
            opacity: 0;
            visibility: hidden;
            color: transparent;
        }

.main-page .rightside-form .form-group-submit {
    position: relative;
    width: 100%;
    height: 50px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center; /* Center children horizontally */
    align-items: center; /* Center children vertically if needed */
}

.main-page .rightside-form .btn-submit {
    width: 80%;
    border-radius: 38px;
    font-size: 22px;
    line-height: 50px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all .5s ease;
    background: #299B51;
    display: block; /* Ensure button is treated as a block element */
    margin: 0 auto; /* Center the button horizontally */
}



    .main-page .rightside-form .btn-submit:hover {
        background: #247E45;
    }

.main-page .rightside-form .btn-cancel {
    width: 50%;
    border-radius: 38px;
    font-weight: 500;
    font-size: 22px;
    line-height: 50px;
    border: 1px solid #343a40; /* Bootstrap 5 btn-outline-dark border color */
    color: #343a40; /* Text color to match the border for the 'outline' effect */
    background-color: transparent; /* Ensure the background is transparent for the 'outline' effect */
    cursor: pointer;
    transition: all .5s ease;
}

    .main-page .rightside-form .btn-cancel:hover {
        background: #343a40; /* Dark background on hover */
        color: #ffffff; /* Text color changes to white on hover for better visibility */
    }

.main-page .rightside-form div.btn-grp {
    display: flex;
    justify-content: space-between; /* This spreads the buttons apart */
    gap: 10px; /* Sets a gap between the buttons */
}

@media (max-width: 767px) {
    .main-page .rightside-form div:not(.form-check) {
        display: flex;
        flex-direction: column;
        gap: 10px; /* Maintains a gap between the buttons even in a column layout */
    }

    .main-page .rightside-form .btn-submit,
    .main-page .rightside-form .btn-cancel {
        width: 100%;
        margin-bottom: 10px; /* Adds space below each button */
    }

    /* To prevent double margin at the bottom of the last button, remove the margin from the last button */
    .main-page .rightside-form .btn-cancel {
        margin-bottom: 0; /* Removes the margin from the bottom of the cancel button */
    }
}
/*Account Layout End*/
