/* MWH single-page login 1.0.2 — scoped to the existing theme's login content. */
#mwh-login {
    --mwh-login-blue: #2c7cc5;
    --mwh-login-blue-dark: #165a96;
    --mwh-login-ink: #173c59;
    --mwh-login-muted: #62788b;
    --mwh-login-border: #d9e5ef;
    direction: rtl;
    color: var(--mwh-login-ink);
    font-family: IRANSans, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    text-align: right;
    background: #fff;
    isolation: isolate;
}
#mwh-login *,
#mwh-login *::before,
#mwh-login *::after { box-sizing: border-box; }
#mwh-login [hidden] { display: none !important; }
#mwh-login button,
#mwh-login input,
#mwh-login select,
#mwh-login a { font-family: inherit; }
#mwh-login button { cursor: pointer; }
#mwh-login button:disabled { cursor: not-allowed; }
#mwh-login a { text-decoration: none; }
#mwh-login button:focus-visible,
#mwh-login a:focus-visible,
#mwh-login input:focus-visible,
#mwh-login select:focus-visible,
#mwh-login [tabindex="-1"]:focus-visible {
    outline: 3px solid #6bc5e8 !important;
    outline-offset: 4px;
}
#mwh-login .mwh-login__hero {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(106deg, #102e50 0%, #0c4b76 62%, #126fa0 100%);
}
#mwh-login .mwh-login__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 23px;
    width: min(1120px, calc(100% - 48px));
    min-height: 144px;
    margin: 0 auto;
}
#mwh-login .mwh-login__hero h1 {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: inherit;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.7;
}
#mwh-login .mwh-login__hero-icon {
    display: flex;
    flex: 0 0 78px;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(6,35,66,.12);
}
#mwh-login .mwh-login__hero-icon img { display: block; width: 60px; height: 60px; }
#mwh-login .mwh-login__hero-shape {
    position: absolute;
    top: -200px;
    left: -65px;
    width: 620px;
    max-width: none;
    height: 520px;
    opacity: .24;
    pointer-events: none;
    transform: rotate(130deg);
}
#mwh-login .mwh-login__layout {
    width: min(1120px, calc(100% - 48px));
    margin: 34px auto 52px;
}
#mwh-login .mwh-login__surface {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    direction: ltr;
    align-items: stretch;
    padding: 12px;
    border: 1px solid #e8f0f6;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 12px 45px rgba(30,71,108,.07), 0 2px 9px rgba(30,71,108,.025);
}
#mwh-login .mwh-login__form-area {
    position: relative;
    min-width: 0;
    min-height: 590px;
    padding: 25px 39px 20px;
    direction: rtl;
}
#mwh-login .mwh-login__tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    margin: 0 0 27px;
    border: 1px solid #e0ebf3;
    border-radius: 17px;
    background: #f0f6fa;
}
#mwh-login .mwh-login__tab {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 46px;
    padding: 8px 7px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #5e778c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
#mwh-login .mwh-login__tab img { flex: 0 0 21px; width: 21px; height: 21px; opacity: .62; }
#mwh-login .mwh-login__tab:hover { color: #1f649d; background: rgba(255,255,255,.55); }
#mwh-login .mwh-login__tab.is-active,
#mwh-login .mwh-login__tab[aria-selected="true"] {
    border-color: #e4edf4;
    background: #fff;
    color: #1c5c96;
    box-shadow: 0 3px 9px rgba(29,75,111,.08);
}
#mwh-login .mwh-login__tab[aria-selected="true"] img { opacity: 1; }
#mwh-login .mwh-login__form { width: 100%; margin: 0; padding: 0; }
#mwh-login .mwh-login__field { min-width: 0; margin: 0 0 19px; }
#mwh-login .mwh-login__field > label,
#mwh-login .mwh-login__label-row > label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    color: #254a67;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}
#mwh-login .mwh-login__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
#mwh-login .mwh-login__input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 51px;
    min-height: 51px;
    padding: 11px 15px;
    margin: 0;
    border: 1px solid var(--mwh-login-border);
    border-radius: 13px !important;
    outline: none;
    background: #fcfdff;
    background-image: none;
    box-shadow: none;
    color: #24455e;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#mwh-login .mwh-login__input--latin { font-family: IRANSansEnNum, IRANSans, sans-serif; text-align: left; }
#mwh-login .mwh-login__input::placeholder { color: #62788b; opacity: 1; }
#mwh-login .mwh-login__input:hover { border-color: #a9c2d7; }
#mwh-login .mwh-login__input:focus {
    border-color: #4e99d6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(73,157,214,.1);
}
#mwh-login .mwh-login__input[aria-invalid="true"],
#mwh-login .mwh-login__input.has-error,
#mwh-login .mwh-login__input.error { border-color: #ca5260; background: #fffafb; }
#mwh-login .mwh-login__input:disabled { color: #7d8e9c; background: #f3f6f9; }
#mwh-login .mwh-login__password-wrap { position: relative; }
#mwh-login .mwh-login__password-wrap .mwh-login__input { padding-left: 50px; }
#mwh-login .mwh-login__password-toggle {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
}
#mwh-login .mwh-login__password-toggle img { width: 20px; height: 20px; opacity: .7; }
#mwh-login .mwh-login__password-toggle:hover { background: #edf5fa; }
#mwh-login .mwh-login__password-toggle[aria-pressed="true"] { background: #e7f2fa; }
#mwh-login .mwh-login__text-link,
#mwh-login .mwh-login__text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #276fa8;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
    text-underline-offset: 4px;
}
#mwh-login .mwh-login__text-link:hover,
#mwh-login .mwh-login__text-button:hover { color: #154c80; text-decoration: underline !important; }
#mwh-login .mwh-login__text-button:disabled { color: #8494a2; text-decoration: none; }
#mwh-login .mwh-login__captcha-field { margin-bottom: 17px; }
#mwh-login .mwh-login__captcha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 144px 44px;
    align-items: center;
    gap: 9px;
    width: 100%;
    direction: rtl;
}
#mwh-login .mwh-login__captcha-image {
    grid-column: 2;
    grid-row: 1;
    display: block;
    width: 144px;
    height: 48px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    object-fit: contain;
}
#mwh-login .mwh-login__captcha-refresh {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #297dbe;
}
#mwh-login .mwh-login__captcha-refresh:hover { background: #edf5fb; }
#mwh-login .mwh-login__captcha-refresh .fa::before { content: none; }
#mwh-login .mwh-login__captcha-refresh img { display: block; width: 19px; height: 19px; }
#mwh-login .mwh-login__captcha-input { grid-column: 1; grid-row: 1; min-width: 0; border-width: 1px !important; }
#mwh-login .mwh-login__captcha-widget { display: flex; justify-content: center; max-width: 100%; min-height: 78px; margin: 6px 0; }
#mwh-login[data-captcha-provider="google"] #mwh-login-captcha-widget { display: flex; justify-content: center; min-width: 0; width: 100%; }
#mwh-login .mwh-login__captcha-widget > .g-recaptcha,
#mwh-login .mwh-login__captcha-widget > .arcaptcha { max-width: 100%; }
#mwh-login .mwh-login__captcha-retry { display: block; min-height: 44px; margin-top: 5px; }
#mwh-login .mwh-login__remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: #536e83;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    cursor: pointer;
}
#mwh-login .mwh-login__remember input {
    appearance: auto;
    position: static;
    width: 17px;
    height: 17px;
    margin: 0;
    opacity: 1;
    accent-color: #2c7cc5;
}
#mwh-login .mwh-login__primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 51px;
    padding: 12px 20px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 14px;
    background: linear-gradient(110deg, #2779bc, #246eb3);
    box-shadow: 0 5px 13px rgba(43,124,194,.13);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: none;
    transition: box-shadow .18s ease, background .18s ease, transform .18s ease;
}
#mwh-login .mwh-login__primary:hover { background: linear-gradient(110deg, #2b7cc0, #1b67ad); box-shadow: 0 7px 17px rgba(43,124,194,.2); transform: translateY(-1px); }
#mwh-login .mwh-login__primary:active { transform: translateY(0); box-shadow: 0 2px 5px rgba(43,124,194,.15); }
#mwh-login .mwh-login__primary:disabled { background: #5790bd; box-shadow: none; transform: none; }
#mwh-login .mwh-login__spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mwh-login-spin .8s linear infinite;
}
#mwh-login .is-loading .mwh-login__spinner,
#mwh-login [aria-busy="true"] .mwh-login__spinner { display: inline-block; }
#mwh-login .mwh-login__divider { position: relative; margin: 18px 0 15px; color: #62788b; font-size: 12px; text-align: center; }
#mwh-login .mwh-login__divider::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: #e5edf3; }
#mwh-login .mwh-login__divider span { position: relative; display: inline-block; padding: 0 16px; background: #fff; }
#mwh-login .mwh-login__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid #d5e1eb;
    border-radius: 13px;
    background: #fff;
    color: #35566f;
    font-size: 14px;
    line-height: 1.7;
    transition: border-color .18s ease, background .18s ease;
}
#mwh-login .mwh-login__google img { display: block; width: 23px; height: 23px; }
#mwh-login .mwh-login__google:hover { border-color: #9abbda; background: #f7fbfe; color: #1b5f99; }
#mwh-login .mwh-login__register { margin: 20px 0 0; padding: 0; color: #62788b; font-size: 13px; line-height: 1.9; text-align: center; }
#mwh-login .mwh-login__register a { margin-right: 4px; color: #246ea8; font-weight: 500; }
#mwh-login .mwh-login__register a:hover { text-decoration: underline !important; text-underline-offset: 4px; }
#mwh-login .mwh-login__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 35px 16px;
    border: 1px solid #e0edf5;
    border-radius: 23px;
    background: linear-gradient(145deg, #f0f9fc 0%, #e8f3fa 58%, #e3f1f7 100%);
}
#mwh-login .mwh-login__visual::before {
    position: absolute;
    top: -130px;
    right: -105px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(103,167,202,.16);
    border-radius: 90px;
    background: linear-gradient(155deg, rgba(145,206,229,.14), rgba(211,235,245,.2));
    content: "";
    transform: rotate(24deg);
}
#mwh-login .mwh-login__visual-backdrop {
    position: absolute;
    right: 12%;
    bottom: 14%;
    width: 76%;
    height: 47%;
    border-radius: 55% 45% 43% 57% / 38% 35% 65% 62%;
    background: linear-gradient(145deg, rgba(193,226,240,.3), rgba(134,206,220,.2));
}
#mwh-login .mwh-login__illustration {
    position: relative;
    display: block;
    width: 100%;
    max-width: 486px;
    height: auto;
    margin: 0;
    transform-origin: 50% 65%;
    transition: transform .35s ease;
}
@media (hover: hover) {
    #mwh-login .mwh-login__visual:hover .mwh-login__illustration { transform: scale(1.018); }
}
#mwh-login .mwh-login__field-error { display: block; margin-top: 7px; color: #b83e4e; font-size: 14px; line-height: 1.9; }
#mwh-login .mwh-login__notice {
    padding: 11px 14px;
    margin: 0 0 18px;
    border: 1px solid #c9e2f4;
    border-radius: 12px;
    background: #edf7fd;
    color: #245f85;
    font-size: 13px;
    line-height: 1.9;
    text-align: right;
    overflow-wrap: anywhere;
}
#mwh-login .mwh-login__notice--error,
#mwh-login .mwh-login__notice.is-error { border-color: #f0cbd1; background: #fff3f5; color: #a33748; }
#mwh-login .mwh-login__notice--success,
#mwh-login .mwh-login__notice.is-success { border-color: #c5e6d9; background: #edf9f3; color: #277658; }
#mwh-login .mwh-login__server-messages:empty { display: none; }
#mwh-login .mwh-login__server-messages > div { margin-bottom: 16px; border-radius: 12px; }
#mwh-login .mwh-login__server-messages p { margin: 0; font-family: inherit; }
#mwh-login .mwh-login__step-heading { margin: 2px 0 20px; }
#mwh-login .mwh-login__step-heading h2 { margin: 0 0 8px; padding: 0; border: 0; background: none; color: #244b68; font-family: inherit; font-size: 19px; font-weight: 500; line-height: 1.8; }
#mwh-login .mwh-login__step-heading p { margin: 0; color: #62788b; font-size: 13px; line-height: 1.9; }
#mwh-login .mwh-login__destination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; margin: 0 0 22px; border: 1px solid #dfebf4; border-radius: 11px; background: #f5f9fc; }
#mwh-login .mwh-login__destination > span { font-family: IRANSansEnNum, IRANSans, sans-serif; color: #2a5676; font-size: 16px; }
#mwh-login .mwh-login__code { height: 64px; padding: 11px 15px; background: #f6fafe; color: #225578; font-family: IRANSansEnNum, IRANSans, sans-serif; font-size: 25px; letter-spacing: .42em; line-height: 1.5; text-align: center; text-indent: .42em; }
#mwh-login .mwh-login__code::placeholder { font-family: IRANSans, sans-serif; font-size: 14px; letter-spacing: 0; text-indent: 0; }
#mwh-login .mwh-login__resend-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: -3px 0 22px; }
#mwh-login .mwh-login__help { margin: 7px 0 0; color: #62788b; font-size: 13px; line-height: 1.9; }
#mwh-login .mwh-login__resend-row .mwh-login__help { margin: 0; }
#mwh-login .mwh-login__resend-row [dir="ltr"] { display: inline-block; min-width: 40px; font-family: IRANSansEnNum, IRANSans, sans-serif; color: #345d7d; text-align: center; }
#mwh-login .mwh-login__select-wrap { position: relative; }
#mwh-login .mwh-login__select-wrap::after { position: absolute; top: 21px; left: 17px; width: 8px; height: 8px; border-right: 1.5px solid #567991; border-bottom: 1.5px solid #567991; content: ""; pointer-events: none; transform: rotate(45deg); }
#mwh-login .mwh-login__select-wrap select { appearance: none; padding: 11px 15px 11px 40px !important; font-family: IRANSansEnNum, IRANSans, sans-serif; font-size: 14px; text-overflow: ellipsis; }
#mwh-login .mwh-login__back { display: block; min-height: 44px; margin: 10px auto 0; }
@keyframes mwh-login-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) {
    #mwh-login .mwh-login__form-area { padding: 23px 25px 18px; }
    #mwh-login .mwh-login__surface { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
    #mwh-login .mwh-login__visual { padding-right: 8px; padding-left: 8px; }
}
@media (max-width: 760px) {
    #mwh-login .mwh-login__hero-inner { width: calc(100% - 36px); min-height: 116px; gap: 17px; }
    #mwh-login .mwh-login__hero h1 { font-size: 22px; }
    #mwh-login .mwh-login__hero-icon { flex-basis: 62px; width: 62px; height: 62px; border-radius: 20px; }
    #mwh-login .mwh-login__hero-icon img { width: 47px; height: 47px; }
    #mwh-login .mwh-login__hero-shape { width: 430px; height: 430px; top: -180px; left: -185px; }
    #mwh-login .mwh-login__layout { width: min(540px, calc(100% - 32px)); margin: 24px auto 32px; }
    #mwh-login .mwh-login__surface { grid-template-columns: minmax(0, 1fr); padding: 9px; border-radius: 25px; }
    #mwh-login .mwh-login__form-area { min-height: 0; padding: 17px 18px 25px; }
    #mwh-login .mwh-login__visual { min-height: 0; max-height: 310px; padding: 20px 25px 12px; border-radius: 19px; }
    #mwh-login .mwh-login__illustration { width: min(100%, 300px); }
    #mwh-login .mwh-login__visual-backdrop { right: 25%; bottom: 10%; width: 50%; }
    #mwh-login .mwh-login__visual::before { width: 310px; height: 310px; top: -160px; right: -60px; }
    #mwh-login .mwh-login__tabs { margin-bottom: 24px; }
}
@media (max-width: 480px) {
    #mwh-login .mwh-login__captcha { grid-template-columns: minmax(0, 1fr) 144px 44px minmax(0, 1fr); gap: 10px; }
    #mwh-login .mwh-login__captcha-input { grid-column: 1 / -1; grid-row: 1; }
    #mwh-login .mwh-login__captcha-image { grid-column: 2; grid-row: 2; }
    #mwh-login .mwh-login__captcha-refresh { grid-column: 3; grid-row: 2; }
}
@media (max-width: 380px) {
    #mwh-login .mwh-login__hero-inner { width: calc(100% - 28px); gap: 13px; }
    #mwh-login .mwh-login__hero h1 { font-size: 19px; }
    #mwh-login .mwh-login__hero-icon { flex-basis: 54px; width: 54px; height: 54px; border-radius: 17px; }
    #mwh-login .mwh-login__hero-icon img { width: 42px; height: 42px; }
    #mwh-login .mwh-login__layout { width: calc(100% - 20px); }
    #mwh-login .mwh-login__surface { padding: 6px; border-radius: 22px; }
    #mwh-login .mwh-login__form-area { padding: 15px 12px 23px; }
    #mwh-login .mwh-login__tab { gap: 5px; font-size: 14px; }
    #mwh-login .mwh-login__tab img { flex-basis: 18px; width: 18px; height: 18px; }
    #mwh-login .mwh-login__captcha-input { padding-right: 10px; padding-left: 10px; font-size: 14px; }
    #mwh-login .mwh-login__label-row { gap: 6px; }
    #mwh-login .mwh-login__text-link { font-size: 12px; }
    #mwh-login .mwh-login__captcha-widget { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    #mwh-login *, #mwh-login *::before, #mwh-login *::after { transition: none !important; scroll-behavior: auto !important; }
    #mwh-login .mwh-login__illustration, #mwh-login .mwh-login__primary:hover { transform: none; }
    #mwh-login .mwh-login__spinner { animation: none; }
}
