.path-user .region-content .tabs ul li.is-active a {
    position: absolute;
    left: 50px;
    font-size: 32px;
    font-weight: 700;
    color: #004E90;
    line-height: 36px;
    padding: 0;
    background: none;
    text-decoration: none;
}
.user-logged-in.path-user .region-content .tabs ul li.is-active a{
    position: unset;
}
.path-user .region-content .tabs ul li.is-active a::before {
    content: url('right-arrow.svg');
    display: inline-block;
    width: 20px;
    height: 16px;
    margin-right: 12px;
    position: relative;
    top: -4px;
}
.user-logged-in.path-user .region-content .tabs ul li.is-active a::before{
    display: none;
}

.path-user .region-content .tabs ul li:not(.is-active) {
    position: absolute;
    bottom: 11%;
    left: 36%;
    display: block;
    width: fit-content;
    margin: auto;
    font-weight: 400;
    font-size: 18px;
    color: #545659;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.path-user .region-content .tabs ul li:not(.is-active):hover {
    color:  #8CAD06;
}

.path-user .region-content .tabs ul li:not(.is-active):has(> a[data-drupal-link-system-path="user/login"]) {
    bottom: 13%;
    left: 43%;
}

.path-user .region-content .tabs ul li a {
    background: none;
    text-transform: capitalize;
    text-decoration: none;
}

.path-user .region-content .block-system-main-block:not(:has(.user-login-form, .user-pass, .user-logout-confirm)) {
    padding-top: 80px;
    background: linear-gradient(#E3F4FF 65%, transparent 50%);
}

.path-user .region-content .block-system-main-block:has(.user-login-form, .user-pass) {
    margin-top: 80px;
}

.path-user .region-content .block-system-main-block:not(:has(form)) {
    background: #E3F4FF;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    padding-top: 0;
}


.path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name,
.path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass {
    font-size: 18px;
    font-weight: 400;
    line-height: 36px;
    color: #545659;
}

.path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name input,
.path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass input {
    height: 65px;
    width: 420px;
    border-radius: 10px;
    border: 0.5px solid #545659;
    background: #FFFFFF;
    margin-top: 8px;
    padding: 22px;
    /* iOS Safari: remove native input styling that overrides custom styles */
    -webkit-appearance: none;
    appearance: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name label,
.path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass label {
    margin-bottom: 0;
    position: relative;
}

.path-user .region-content [data-drupal-selector="user-login-form"] .form-required:after {
    position: absolute;
    bottom: 22px;
}

.path-user .region-content [data-drupal-selector="user-login-form"] .form-actions input[type="submit"] {
    display: block;
    margin-top: 50px;
    height: 65px;
    width: 420px;
    background: #F27300;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px !important;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 100%;
    /* iOS Safari: remove native button styling */
    -webkit-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
}

.path-user .region-content [data-drupal-selector="user-pass"] .form-item-name label {
    text-align: left;
}

.path-user .region-content:has([data-drupal-messages]) [data-drupal-messages] {
    position: absolute;
    top: 88px;
}

.path-user .messages--error {
    max-width: 100%;
}

.path-user .region-content [data-drupal-selector="user-pass"] .form-actions input[type="submit"]{
   font-size: 20px !important;
   padding: 14px;
   height: 65px;
}


.path-tfa .block-system-main-block {
    background: linear-gradient(#E3F4FF 60%, transparent 50%);
    padding-top: 80px;
}

.path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] {
    width: 650px;
    border-radius: 30px;
    border: 1px solid #545659;
    box-shadow: 5px 5px 4px 0 rgba(0, 0, 0, 0.25);
    padding: 35px 80px;
    position: relative;
    margin: auto;
    background: #ffffff;
    font-family: Figtree, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-code {
    margin-top: unset
}

.path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-otp label,
.path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-code label {
    font-size: 18px;
    font-weight: 400;
    line-height: 36px;
    color: #545659;
}

.path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-otp input,
.path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-code input {
    height: 52px;
    width: 488px;
    border-radius: 10px;
    border: 0.5px solid #545659;
    background: #FFFFFF;
    margin-top: 8px;
    padding: 18px;
    outline: none;
    font-family: Figtree, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.path-tfa .block-system-main-block [data-drupal-selector="edit-button-container"] {
    margin-top: 30px;
    justify-content: left;
    margin-bottom: 20px;
}

.path-tfa .block-system-main-block [data-drupal-selector="edit-submit"] {
    background: #8CAD06;
    border: 1px solid #8CAD06;
    color: #fff;
    cursor: pointer;
    padding: 14px 26px;
    font-size: 16px !important;
    font-weight: 700;
    transition: all 0.15s ease-in-out;
    border-radius: 50px;
    font-family: Figtree, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.path-tfa .block-system-main-block [data-drupal-selector="edit-submit"]:hover {
    background: #F27300;
    transition: all 0.9s ease;
    border: 1px solid #F27300;

}

.path-tfa .block-system-main-block [data-drupal-selector="edit-resend-container"] button {
    margin-left: 1px !important;
    font-size: 16px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
}

.path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-code .description {
    font-size: 16px;
    margin-top: 15px;
    font-weight: 400;
    color: #545659;
}

.path-tfa [data-drupal-selector="edit-change-validation-plugin"] {
    border: unset;
    padding: unset;
    font-size: 17px;
    font-weight: 400;
    color: #545659;
}

.path-tfa [data-drupal-selector="edit-change-validation-plugin"] .fieldset-wrapper {
    margin-top: 2px;
}

.path-tfa [data-drupal-selector="edit-change-validation-plugin"] legend {
    font-weight: 700;
}

.path-tfa [data-drupal-selector="edit-other-validation-plugins"] li {
    margin-top: 2px;
    color: #8CAD06;
    transition: all 0.15s ease-in-out;
    width: fit-content;
}

.path-tfa [data-drupal-selector="edit-other-validation-plugins"] li:hover {
    color: #c96811;
}

.path-tfa [data-drupal-selector="edit-actions"] {
    margin-top: 25px;
    margin-bottom: 15px;
}

.path-tfa [data-drupal-selector="edit-actions"] .form-submit {
    background: #8CAD06;
    border: 1px solid #8CAD06;
    color: #fff;
    cursor: pointer;
    padding: 14px 26px;
    font-size: 16px !important;
    font-weight: 700;
    transition: all 0.15s ease-in-out;
    border-radius: 50px;
    text-transform: uppercase;
}

.path-tfa [data-drupal-selector="edit-actions"] .form-submit:hover {
    background: #F27300;
    transition: all 0.9s ease;
    border: 1px solid #F27300;
}

.path-tfa .resend-timer {
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
    font-family: Figtree, sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

#resend-container button[name="resend"] {
    background-color: #ea8625;
    border: 1px solid #ea8625;
    color: #fff;
    cursor: pointer;
    padding: 14px 26px;
    border-radius: 3px;
    font-size: 16px !important;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    text-transform: uppercase !important;
}

#resend-container button[name="resend"]:hover {
    background: #8CAD06;
    transition: all 0.9s ease;
    border: 1px solid #8CAD06;
    color: #fff;
}

.login-wrapper {
    margin-bottom: 160px;
}

[data-drupal-link-system-path="user/password"]:hover {
    text-decoration: underline;
}
.path-user .error-4xx-page .block-system-main-block:not(:has(.user-login-form, .user-pass, .user-logout-confirm)) {
    padding-top: 0px !important;
    background: #f8f9fa !important;
    height: unset;
}
.path-user .error-4xx-page .block-system-main-block:not(:has(form)){
    background: #f8f9fa !important;
}
/* 992-1023px: Tailwind lg:flex-row starts at 1024px, so this range is still
   flex-column. Override Tailwind's mb-[-260px] which shrinks the blue section. */
@media (min-width:992px) and (max-width:1023px) {
.password-reset:has(.user-login-form) {
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: 600px;
        padding: 17px 50px !important;
    }

    .login-wrapper {
        margin-bottom: 160px;
    }

    .login-form {
        max-width: 465px;
        padding: 17px 30px;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name input,
    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass input {
        width: 100%;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-actions input[type="submit"] {
        width: 100%;
    }
}

/* 768-992px: iPad portrait range — flex-column layout.
   Override Tailwind's mb-[-260px] which shrinks the blue background section. */
@media (min-width:768px) and (max-width:992px) {

    .password-reset {
        margin-bottom: -160px !important;
        height: auto !important;
        width: 100% !important;
        /* max-width: 500px; */
         min-height: 500px;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 20px 40px !important;
    }
        .password-reset:has(.user-login-form) {
        margin-bottom: -260px !important;
        height: auto !important;
        min-height: 600px;
        width: 100% !important;
        /* max-width: 500px; */
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 20px 40px !important;
    }

    .login-wrapper {
        margin-bottom: 260px;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name input,
    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass input {
        width: 100%;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-actions input[type="submit"] {
        width: 100%;
    }
}

@media (max-width:767px) {
    .login-form {
        width: 100%;
        padding: 30px 24px;
        padding-bottom: 50px;
        height: auto;
        padding-top: 15px;

    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name input,
    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass input {
        width: 100%;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-actions input[type="submit"] {
        width: 100%;
        font-size: 18px !important;
    }

    .path-user .region-content [data-drupal-selector="user-pass"] .form-actions input[type="submit"]{
        font-size: 18px !important;
    }

    .login-wrapper {
        margin-bottom: 260px;
    }

    .path-user .region-content .block-system-main-block:has(.user-login-form, .user-pass) {
        margin-top: 50px;
    }

    .path-user .region-content .tabs ul li.is-active a {
        left: 23px;
    }

    .path-user .region-content .tabs ul li:not(.is-active) {
        left: 50% !important;
        transform: translateX(-50%);
        bottom: 4% !important;
    }

    .path-user .region-content .tabs ul li a {
        white-space: nowrap;
    }

    .hero-content {
        padding: 10px;
    }
        .password-reset{
        height: auto !important;
        padding-bottom: 55px;
    }
}

@media (max-width: 675px) {
    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] {
        width: 95%;
        padding: 20px 40px;
    }

    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-otp input,
    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-code input {
        width: 100%;
    }

    .tfa-button-container,
    .path-tfa [data-drupal-selector="edit-actions"] {
        display: block;
    }

    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-otp label,
    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-code label {
        line-height: unset;
    }

    .path-tfa .block-system-main-block [data-drupal-selector="edit-submit"],
    #resend-container button[name="resend"],
    .path-tfa [data-drupal-selector="edit-actions"] .form-submit {
        padding: 10px 22px;
    }

    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-otp input,
    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] .form-item-code input {
        height: 47px;
    }
}

@media (max-width: 500px) {
    .path-tfa .block-system-main-block [data-drupal-selector="tfa-entry-form"] {
        padding: 20px 25px !important;
    }


    .path-tfa .block-system-main-block [data-drupal-selector="edit-submit"],
    #resend-container button[name="resend"],
    .path-tfa [data-drupal-selector="edit-actions"] .form-submit {
        padding: 10px 16px;
        width: 100%;
    }

    #resend-container {
        display: block !important;
        margin-top: 14px;
    }
}

@media (max-width: 450px) {
    .path-user .region-content .tabs ul li a.is-active::before {
        content: none;
    }
    .path-user .region-content .tabs ul li.is-active a::before {
        content: none;
    }

    .path-user .region-content .tabs ul li.is-active a {
        left: inherit;
    }

    [data-drupal-link-system-path="user/password"].is-active,[data-drupal-link-system-path="user/login"].is-active,[data-drupal-link-system-path="user/login"] {
        font-size: 25px !important;
    }

    .password-reset{
        height: auto !important;
        padding-bottom: 50px;
    }

    .user-pass input[type="submit"]{
        height: 55px !important;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-actions input[type="submit"]{
        height: 55px;
        margin-top: 40px;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name input, .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass input, .user-pass input[type="text"]{
        height: 55px;
    }

    .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-name input::placeholder, .path-user .region-content [data-drupal-selector="user-login-form"] .form-item-pass input::placeholder, .user-pass input[type="text"]::placeholder{
        font-size: 15px;
    }


}