.login-modern-page {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 64px;
    background:
        radial-gradient(circle at 9% 24%, rgba(164, 0, 30, .075), transparent 28%),
        radial-gradient(circle at 93% 82%, rgba(45, 126, 67, .075), transparent 25%),
        #f7f8f7;
}

.login-modern-container {
    max-width: 1160px;
}

.login-breadcrumb {
    margin: 0;
    padding: 22px 2px 18px;
}

.login-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.login-modern-card {
    display: grid;
    grid-template-columns: minmax(350px, .94fr) minmax(0, 1.06fr);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(22, 35, 26, .08);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(25, 41, 30, .12);
}

.login-modern-card > *,
.login-form-panel,
.login-modern-form,
.login-field,
.login-input-wrap,
.login-otp-inline {
    min-width: 0;
}

.login-welcome-panel {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    overflow: hidden;
    padding: 50px 46px;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .07), transparent 42%),
        linear-gradient(145deg, #650013 0%, #8f001b 48%, #ad0021 100%);
    color: #fff;
}

.login-welcome-panel::after {
    position: absolute;
    z-index: -1;
    right: -72px;
    bottom: -68px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 48% 52% 63% 37%;
    content: '';
    transform: rotate(25deg);
}

.login-welcome-orb {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.login-welcome-orb-one {
    top: 95px;
    right: -74px;
    width: 205px;
    height: 205px;
}

.login-welcome-orb-two {
    right: 54px;
    bottom: 150px;
    width: 76px;
    height: 76px;
    background: rgba(255, 204, 116, .11);
}

.login-welcome-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.login-brand-mark {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 11px;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.login-brand-mark:hover {
    color: #fff !important;
    opacity: .94;
}

.login-brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 13px;
    background: rgba(255, 255, 255, .12);
    color: #f7d47a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.login-welcome-copy {
    margin-top: 66px;
}

.login-eyebrow,
.login-step-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-eyebrow {
    color: #f4d37d;
}

.login-eyebrow::before {
    width: 22px;
    height: 2px;
    border-radius: 5px;
    background: currentColor;
    content: '';
}

.login-welcome-copy h2 {
    max-width: 390px;
    margin: 0 0 19px;
    color: #fff;
    font-size: clamp(36px, 3.2vw, 49px);
    font-weight: 750;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.login-welcome-copy p {
    max-width: 400px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.7;
}

.login-preview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-top: 40px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .105);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(7px);
}

.login-preview-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .13);
    color: #f7d47a;
}

.login-preview-card strong,
.login-preview-card span {
    display: block;
}

.login-preview-card strong {
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
}

.login-preview-card div > span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
}

.login-preview-card .login-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .84);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.login-preview-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #71d68a;
    box-shadow: 0 0 0 4px rgba(113, 214, 138, .12);
}

.login-secure-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 40px;
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
    line-height: 1.45;
}

.login-secure-note svg {
    flex: 0 0 auto;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 58px 40px;
    background: #fff;
}

.login-form-heading {
    margin-bottom: 25px;
}

.login-step-label {
    margin-bottom: 7px;
    color: var(--mds-color-main);
}

.login-form-heading h1 {
    margin: 0 0 7px;
    color: #152019;
    font-size: 36px;
    font-weight: 750;
    letter-spacing: -.04em;
}

.login-form-heading p {
    margin: 0;
    color: #6f7872;
    font-size: 14px;
}

.login-form-messages:empty {
    display: none;
}

.login-form-messages .alert {
    margin: 0 0 18px;
    border-radius: 11px;
    font-size: 13px;
}

.login-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    border: 1px solid #e2e7e3;
    border-radius: 14px;
    background: #f5f7f5;
}

.login-mode-switch .auth-login-mode-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.login-mode-switch .auth-login-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-mode-option-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #667069;
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.login-mode-option-content strong {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.login-mode-switch .auth-login-mode-option input:checked + .login-mode-option-content {
    background: #fff;
    color: var(--mds-color-main);
    box-shadow: 0 3px 11px rgba(30, 47, 36, .09);
}

.login-mode-switch .auth-login-mode-option input:focus-visible + .login-mode-option-content {
    outline: 3px solid rgba(164, 0, 30, .15);
    outline-offset: 1px;
}

.login-field {
    margin-bottom: 18px;
}

.login-field > label {
    display: flex;
    margin: 0 0 8px;
    color: #253129;
    font-size: 12px;
    font-weight: 700;
}

.login-field > small {
    display: block;
    margin-top: 7px;
    color: #8a948e;
    font-size: 10px;
    line-height: 1.45;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    display: grid;
    place-items: center;
    color: #9ca8a0;
    pointer-events: none;
    transform: translateY(-50%);
}

.login-modern-form .login-input-wrap .form-control {
    width: 100%;
    height: 53px;
    padding: 10px 45px;
    border: 1px solid #dce3de;
    border-radius: 12px;
    background: #fbfcfb;
    color: #1e2b22;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.login-modern-form .login-input-wrap .form-control::placeholder {
    color: #a4aea7;
}

.login-modern-form .login-input-wrap .form-control:focus {
    border-color: rgba(164, 0, 30, .58);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(164, 0, 30, .08);
}

.login-modern-form.was-validated .form-control:invalid {
    border-color: #c3314b;
}

.login-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 9px;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #909c94;
    transform: translateY(-50%);
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    background: #f1f4f2;
    color: var(--mds-color-main);
}

.login-password-toggle .login-eye-closed,
.login-password-toggle.is-visible .login-eye-open {
    display: none;
}

.login-password-toggle.is-visible .login-eye-closed {
    display: block;
}

.login-otp-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.login-modern-form .login-otp-input {
    letter-spacing: .2em;
}

.login-otp-inline .btn-login-send-otp {
    min-width: 122px;
    min-height: 53px;
    padding: 9px 16px;
    border: 1px solid rgba(164, 0, 30, .28);
    border-radius: 12px;
    background: #fff5f6;
    color: var(--mds-color-main);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.login-otp-inline .btn-login-send-otp:hover:not(:disabled) {
    border-color: var(--mds-color-main);
    background: #ffedef;
    color: var(--mds-color-main);
    transform: translateY(-1px);
}

.login-otp-inline .btn-login-send-otp:disabled {
    cursor: wait;
    opacity: .65;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: -1px 0 19px;
    color: #69736d;
    font-size: 12px;
}

.login-options.display-none {
    display: none !important;
}

.login-options a {
    color: var(--mds-color-main);
    font-weight: 650;
}

.login-remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.login-remember-option input {
    position: absolute;
    opacity: 0;
}

.login-remember-option > span {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid #d8dfda;
    border-radius: 5px;
    background: #fff;
}

.login-remember-option input:checked + span {
    border-color: var(--mds-color-main);
    background: var(--mds-color-main);
}

.login-remember-option input:checked + span::after {
    position: absolute;
    top: 3px;
    left: 5px;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: '';
    transform: rotate(45deg);
}

.login-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #870019, #ad0021);
    color: #fff !important;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 11px 24px rgba(151, 0, 29, .2);
    transition: box-shadow .2s ease, transform .2s ease;
}

.login-submit-button:hover,
.login-submit-button:focus {
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(151, 0, 29, .27);
    transform: translateY(-1px);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #9ba49e;
    font-size: 10px;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    flex: 1;
    height: 1px;
    background: #e5e9e6;
    content: '';
}

.login-social-options .btn-social {
    min-height: 48px;
    border-radius: 11px;
}

.login-social-options .p-social-media {
    display: none;
}

.login-signup-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    color: #6f7872;
    font-size: 13px;
}

.login-signup-box a {
    color: var(--mds-color-main);
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(164, 0, 30, .3);
    text-underline-offset: 3px;
}

[dir="rtl"] .login-input-icon {
    right: 15px;
    left: auto;
}

[dir="rtl"] .login-password-toggle {
    right: auto;
    left: 9px;
}

@media (max-width: 991px) {
    .login-modern-card {
        grid-template-columns: 1fr;
        max-width: 760px;
        min-height: 0;
        margin: 0 auto;
    }

    .login-welcome-panel {
        min-height: auto;
        padding: 34px 38px;
    }

    .login-welcome-content {
        min-height: auto;
    }

    .login-welcome-copy {
        margin-top: 34px;
    }

    .login-welcome-copy h2 {
        max-width: 560px;
        font-size: 36px;
    }

    .login-welcome-copy h2 br {
        display: none;
    }

    .login-preview-card {
        max-width: 540px;
        margin-top: 27px;
    }

    .login-secure-note {
        display: none;
    }

    .login-form-panel {
        padding: 38px 50px 40px;
    }
}

@media (max-width: 767px) {
    .login-modern-page {
        padding-bottom: 35px;
    }

    .login-breadcrumb {
        padding: 15px 0 13px;
    }

    .login-modern-card {
        width: 100%;
        border-radius: 19px;
        box-shadow: 0 16px 42px rgba(25, 41, 30, .1);
    }

    .login-welcome-panel {
        padding: 29px 25px;
    }

    .login-brand-icon {
        width: 38px;
        height: 38px;
    }

    .login-welcome-copy h2 {
        font-size: 31px;
    }

    .login-preview-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .login-preview-status {
        display: none !important;
    }

    .login-form-panel {
        padding: 31px 25px 32px;
    }

    .login-form-heading h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .login-modern-container {
        width: auto !important;
        max-width: none;
        margin-right: 12px;
        margin-left: 12px;
        padding-right: 0;
        padding-left: 0;
    }

    .login-modern-card {
        width: auto;
        max-width: 100%;
    }

    .login-welcome-panel,
    .login-form-panel {
        padding-right: 19px;
        padding-left: 19px;
    }

    .login-welcome-copy {
        margin-top: 27px;
    }

    .login-welcome-copy h2 {
        font-size: 28px;
    }

    .login-preview-card {
        display: none;
    }

    .login-otp-inline {
        grid-template-columns: 1fr;
    }

    .login-otp-inline .btn-login-send-otp {
        width: 100%;
    }

    .login-options {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-modern-page *,
    .login-modern-page *::before,
    .login-modern-page *::after {
        transition-duration: .01ms !important;
    }
}
