.main-section {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: auto;
}

.logo-section {
    flex: 1;
    background-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.logo-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f8f8;
    clip-path: polygon(100% 0, 100% 100%, 85% 100%);
    z-index: 2;
}

.content-section {
    flex: 1;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.appLogo {
    max-width: 40%;
}

/* Login Section */
.main-heading {
    font-size: 30px !important;
    font-weight: 600 !important;
    color: #18181B !important;
    text-align: center !important;
}

.sub-heading {
    font-family: SF Pro Regular !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #5B5B5D !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

.form-content {
    width: 100% !important;
    max-width: 500px !important;
    margin: 30px auto 0 auto !important;
}

.login-form,
.reset-form,
.otp-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    display: block;
    color: #18181B;
}

.input-icon {
    position: relative;
}

.input-icon input {
    width: 100%;
    height: 48px;
    padding: 8px 35px 8px 32px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    font-family: SF Pro Regular !important;
}

.input-icon input::placeholder {
    font-family: SF Pro Regular !important;
    font-size: 16px;
}

.input-icon input:focus {
    border: 2px solid #18181B;
}

.input-icon .left-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-icon .toggle-password,
.input-icon .toggle-confirm-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

.input-icon.filled input {
    border: 2px solid #18181B;
}

.input-icon.filled svg path {
    stroke: #18181B;
}

/* Remember Me Checkbox Styling */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 20px;
    width: calc(100% - 2px);
    box-sizing: border-box;
}

.form-options>div {
    display: flex;
    align-items: center;
}

.form-options>div:first-child {
    padding-left: 2px;
}

.form-check-input,
.form-check-label {
    cursor: pointer;
}

.form-check-input.checkbox-input {
    margin-top: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 15px !important;
    height: 15px !important;
    border: 2px solid #aaa !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    transition: background-color 0.2s, border-color 0.2s !important;
}

.checkbox-input:checked {
    background-color: #F9823E !important;
    border-color: #F9823E !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.285 6.708l-11.285 11.285-5.285-5.285 1.414-1.414 3.871 3.871 9.871-9.871z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.checkbox-input:focus:not(:checked) {
    margin-top: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 15px !important;
    height: 15px !important;
    border: 2px solid #aaa !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    transition: background-color 0.2s, border-color 0.2s !important;
}

.checkbox-input:focus {
    border: none !important;
    border-radius: 6px !important;
}

.form-options .form-check-label {
    margin-left: 6px;
    color: #5B5B5D;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
}

.back-btn {
    margin-top: 40px;
    text-align: center;
}

.forgot-password,
.back-login,
.resend-otp {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #F9823E;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover,
.back-login:hover,
.resend-otp:hover {
    color: #fa5e04;
    text-decoration: none;
    font-weight: 500;
}

.login-button,
.get-otp-button,
.verify-otp-button,
.reset-password-button {
    margin-top: 40px;
    width: 100%;
    height: 40px;
    padding: 8px;
    background-color: #F9823E;
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, outline 0.2s;
    outline: none;
}

.login-button:hover,
.get-otp-button:hover,
.verify-otp-button:hover,
.reset-password-button:hover {
    background-color: #fa5e04;
}

.login-button:focus,
.get-otp-button:focus,
.verify-otp-button:focus,
.reset-password-button:focus {
    outline: 2px solid #F9823E;
    outline-offset: 2px;
}

.verification-code {
    max-width: 550px;
    position: relative;
    margin: 50px auto 0 auto;
}

.otp-input input {
    border: 2px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    font-family: SF Pro Regular !important;
}

.otp-input input:focus {
    border: 2px solid #18181B;
}

.otp-input input.filled {
    border: 2px solid #18181B;
}

.otp-option {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.otp-text {
    margin-right: 6px;
    color: #5B5B5D;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
}

/* ---------- Responsive Breakpoints ---------- */
@media (min-width: 1901px) {
    .form-content {
        max-width: 800px !important;
    }

    .main-heading {
        font-size: 40px !important;

    }

    .sub-heading {
        font-size: 30px !important;
    }

    .login-form,
    .reset-form,
    .otp-form,
    .verification-code {
        max-width: 900px !important;
    }

    .form-group label {
        font-size: 20px;
        font-weight: 500;
    }

    .form-options .form-check-label,
    .invalid-feedback,
    .otp-error {
        font-weight: 700 !important;
        font-size: 18px !important;
    }

    .forgot-password,
    .back-login,
    .otp-text,
    .resend-otp {
        font-size: 22px !important;
        font-weight: 700 !important;
    }

    .login-button,
    .get-otp-button,
    .verify-otp-button,
    .reset-password-button {
        margin-top: 40px;
        width: 100%;
        height: 60px;
        padding: 8px;
        font-weight: 600;
        border-radius: 30px;
        font-size: 26px;
    }

    .input-icon input {
        width: 100%;
        height: 50px;
        padding: 8px 35px 8px 32px;
        border: 2px solid #ccc;
        border-radius: 6px;
        font-size: 18px;
    }

    .otp-input input {
        height: 50px;
        border: 2px solid #ccc;
        border-radius: 6px;
        font-size: 18px;
    }
}

/* Tablets and below */
@media (min-width: 991.98px) and (max-width: 1145px) {

    .login-form,
    .reset-form,
    .otp-form {
        width: fit-content !important;
        min-width: 320px;
        max-width: 400px !important;
    }

    .form-content {
        width: fit-content !important;
        max-width: 420px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 991.98px) {
    .main-section {
        flex-direction: column;
        height: auto;
    }

    .logo-section,
    .content-section {
        width: 100%;
        height: auto;
        min-height: 40vh;
        clip-path: none;
        padding: 30px 20px;
    }

    .appLogo {
        max-width: 60%;
    }

    .logo-section::after {
        display: none;
    }
}

/* Small devices (phones) */
@media (max-width: 575.98px) {

    .logo-section,
    .content-section {
        height: auto;
        padding: 30px 20px;
    }

    .logo-section::after {
        display: none;
    }

    .appLogo {
        max-width: 70%;
    }

    .content-section {
        justify-content: flex-start;
    }

    .main-heading {
        font-size: 20px !important;
    }

    .sub-heading {
        font-size: 14px !important;
    }
}