/* Modern RTL account pages for Mahan Electronic.
   Existing ASP.NET controls, class names and IDs remain available. */

.ModernLoginPage,
.ModernProfilePage,
.ModernRegisterPage,
.ModernRecoveryPage {
    width: min(1040px, calc(100% - 32px));
    margin: 34px auto 58px !important;
    padding: clamp(24px, 4vw, 52px) !important;
    border: 1px solid rgba(7, 26, 43, .07);
    border-radius: 26px !important;
    background: #fff !important;
    color: var(--modern-text, #172432);
    box-shadow: 0 20px 55px rgba(7, 26, 43, .09) !important;
    overflow: hidden;
}

.ModernLoginPage *,
.ModernProfilePage *,
.ModernRegisterPage *,
.ModernRecoveryPage * {
    box-sizing: border-box;
}

.AccountPageHero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding: 24px 26px;
    overflow: hidden;
    border: 1px solid #dfeaf0;
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 20%, rgba(8, 184, 212, .16), transparent 34%),
        linear-gradient(135deg, #f4fbfd 0%, #f8fafb 100%);
}

.AccountPageHero:after {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border: 24px solid rgba(8, 184, 212, .07);
    border-radius: 50%;
    pointer-events: none;
}

.AccountPageHeroIcon {
    position: relative;
    z-index: 1;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--modern-cyan, #08b8d4);
    color: #fff;
    box-shadow: 0 12px 28px rgba(8, 184, 212, .24);
}

.AccountPageHeroIcon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.AccountPageHero > div:last-child {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.AccountPageEyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--modern-cyan-dark, #0797b3);
    font-size: 13px;
    font-weight: 600;
}

.AccountPageHero h1 {
    margin: 0 0 7px;
    color: #102b3e;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.55;
    font-weight: 600;
}

.AccountPageHero p {
    margin: 0;
    color: #687a88;
    font-size: 14px;
    line-height: 2;
}

.AccountPageMessage {
    margin: 0 auto 22px;
    color: #607381;
    font-size: 14px;
    line-height: 2;
}

.AccountPageMessage:empty {
    display: none;
}

/* Login page */
.ModernLoginPage {
    max-width: 820px;
}

.ModernLoginControl {
    width: min(100%, 560px);
    margin: 0 auto;
}

.ModernLoginControl > .col-lg-3,
.ModernLoginControl > .col-md-3,
.ModernLoginControl > .col-sm-3 {
    display: none !important;
}

.ModernLoginControl .sServ7 {
    float: none !important;
    display: block;
    margin: 0 0 22px !important;
    color: #132f42 !important;
    font-size: 24px !important;
    line-height: 1.7;
    text-align: center;
    font-weight: 600;
}

.ModernLoginControl .LoginCtrl0 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 30px !important;
    border: 1px solid #dfe9ed !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%) !important;
    box-shadow: 0 14px 36px rgba(7, 26, 43, .07) !important;
}

.ModernLoginControl .LoginCtrl15,
.ModernLoginControl .LoginCtrl13,
.ModernLoginControl .LoginCtrl13_4,
.ModernLoginControl .LoginCtrl1,
.ModernLoginControl .LoginCtrl2 {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

.ModernLoginControl .LoginCtrl2 > div {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
}

.ModernLoginControl .LoginCtrl2 > div:nth-child(3) {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.ModernLoginControl .LoginCtrl3,
.ModernLoginControl .LoginCtrl7,
.ModernLoginControl .LoginCtrl4 {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.ModernLoginControl .LoginCtrl7 {
    position: relative;
}

.ModernLoginControl .LoginCtrl6 {
    display: block;
    color: #304a5c !important;
    font-size: 14px !important;
    line-height: 1.8;
    font-weight: 600;
}

.ModernLoginControl .LoginCtrl5 {
    display: block;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid #d6e3e9 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #213a4b !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    outline: 0;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ModernLoginControl .LoginCtrl5:focus {
    border-color: var(--modern-cyan, #08b8d4) !important;
    box-shadow: 0 0 0 4px rgba(8, 184, 212, .10) !important;
}

.ModernLoginControl .LoginCtrl7 > span[style*="Red"],
.ModernLoginControl .LoginCtrl7 > span[style*="red"],
.ModernLoginControl .LoginCtrl7 > span[id$="Required"] {
    position: absolute;
    left: 12px;
    top: 50%;
    z-index: 2;
    margin: 0 !important;
    transform: translateY(-50%);
    color: #d94c4c !important;
    line-height: 1;
}

.ModernLoginControl .SubmitIBClass,
.ModernLoginControl #LoginImageButton {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 50px;
    height: 50px !important;
    margin: 2px 0 0 !important;
    padding: 10px 22px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: var(--modern-cyan, #08b8d4) !important;
    background-image: none !important;
    color: #fff !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500;
    text-indent: 0 !important;
    cursor: pointer;
    box-shadow: 0 11px 25px rgba(8, 184, 212, .24) !important;
}

.ModernLoginControl .SubmitIBClass:hover,
.ModernLoginControl #LoginImageButton:hover {
    background: var(--modern-cyan-dark, #0797b3) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 184, 212, .28) !important;
}

.ModernLoginControl .LoginCtrl4_1 {
    float: none !important;
    width: 100% !important;
    margin: 20px 0 0 !important;
    padding: 17px 0 0 !important;
    border-top: 1px solid #e6edf1;
    color: #9aa7af;
    text-align: center !important;
}

.ModernLoginControl .LoginCtrl4_1 .LoginCtrl {
    display: inline-block;
    padding: 4px 7px;
    color: #168da3 !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.ModernLoginControl .LoginCtrl4_1 .LoginCtrl:hover {
    color: #102f42 !important;
}

/* Logged-in state inside the login control */
.ModernLoginControl [id$="UserLoggedInTD"] {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #dfe9ed;
    border-radius: 17px;
    background: #f5fafb;
}

.ModernLoginControl [id$="UserLoggedInTD"] .LoginCtrl13 {
    text-align: center !important;
}

.ModernLoginControl [id$="UserLoggedInTD"] .sUserInfo11 {
    float: none !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #526878;
    text-align: center !important;
}

.ModernLoginControl [id$="UserLoggedInTD"] .sUserInfo11 img,
.ModernLoginControl [id$="UserLoggedInTD"] > div img:first-child {
    width: 74px;
    height: 74px;
    margin: 0 auto 12px;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(7,26,43,.12);
}

.ModernLoginControl [id$="UserLoggedInTD"] img[src*="BulletLogin"] {
    display: none !important;
}

.ModernLoginControl [id$="UserLoggedInTD"] .LoginCtrl {
    display: inline-flex;
    margin: 6px 4px;
    padding: 8px 14px;
    border: 1px solid #dce8ed;
    border-radius: 11px;
    background: #fff;
    color: #168da3 !important;
    text-decoration: none !important;
}

/* Profile page */
.ModernProfilePage {
    max-width: 1040px;
}

.ProfileFormCard {
    padding: 26px;
    border: 1px solid #dfe9ed;
    border-radius: 20px;
    background: #f8fbfc;
}

.ModernProfilePage .sUserInfo1 {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    background: transparent !important;
}

.ModernProfilePage .sUserInfo1 > tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.ModernProfilePage .sUserInfo1 tr {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 76px;
    padding: 13px 15px;
    border: 1px solid #e1eaee;
    border-radius: 15px;
    background: #fff;
}

.ModernProfilePage .sUserInfo1 tr:nth-child(10),
.ModernProfilePage .sUserInfo1 tr:nth-child(11) {
    grid-column: 1 / -1;
}

.ModernProfilePage .sUserInfo1 td {
    position: relative;
    display: block;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #405667;
    vertical-align: middle !important;
}

.ModernProfilePage .sUserInfo2,
.ModernProfilePage .sUserInfo3,
.ModernProfilePage .sCart8 {
    padding-left: 12px !important;
    color: #2b4658 !important;
    font-size: 13px !important;
    line-height: 1.9;
    text-align: right !important;
    font-weight: 600;
}

.ModernProfilePage .sUserInfo1 input[type="text"],
.ModernProfilePage .sUserInfo1 input[type="email"],
.ModernProfilePage .sUserInfo1 textarea,
.ModernProfilePage .sUserInfo1 select,
.ModernProfilePage .sUserInfo1 .FaTextBoxFull,
.ModernProfilePage .sUserInfo1 .EnTextBoxFull {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 9px 13px !important;
    border: 1px solid #d7e3e8 !important;
    border-radius: 12px !important;
    background: #fbfdfe !important;
    color: #263c4b !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    outline: 0;
    box-shadow: none !important;
}

.ModernProfilePage .sUserInfo1 textarea {
    height: 105px !important;
    min-height: 105px !important;
    resize: vertical;
}

.ModernProfilePage .sUserInfo1 input:focus,
.ModernProfilePage .sUserInfo1 textarea:focus,
.ModernProfilePage .sUserInfo1 select:focus {
    border-color: var(--modern-cyan, #08b8d4) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(8,184,212,.09) !important;
}

.ModernProfilePage #tbEmail {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 9px 13px;
    border: 1px dashed #d6e2e7;
    border-radius: 12px;
    background: #f4f7f9;
    color: #6d7d89;
}

.ModernProfilePage .sUserInfo1 td > span[style*="Red"],
.ModernProfilePage .sUserInfo1 td > span[style*="red"] {
    position: absolute;
    left: 10px;
    top: 50%;
    margin: 0 !important;
    transform: translateY(-50%);
    color: #d94c4c !important;
}

.ModernProfilePage input[type="file"] {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 8px;
    border: 1px dashed #cadce3;
    border-radius: 11px;
    background: #f8fbfc;
    color: #526b7a;
}

.ModernProfilePage #ContentPlaceHolder1_profileImg,
.ModernProfilePage [id$="profileImg"] {
    display: block;
    width: 76px !important;
    height: 76px !important;
    margin-top: 10px;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(7,26,43,.12);
}

.ProfileSubmitRow {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dfe9ed;
    border-radius: 15px;
    background: #fff;
}

.ProfileSubmitRow > .sUserInfo3 {
    padding-top: 12px !important;
}

.ProfileSubmitRow .captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    width: auto;
    margin: 0 !important;
}

.ProfileSubmitRow .captcha:before,
.ProfileSubmitRow .captcha:after {
    display: none !important;
    content: none !important;
}

.ProfileSubmitRow .captcha .image-container,
.ProfileSubmitRow .captcha .control-container {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.ProfileSubmitRow .captcha .control-container br {
    display: none !important;
}

.ProfileSubmitRow .captcha .image {
    display: block;
    width: 150px !important;
    height: 48px !important;
    margin: 0 !important;
    border: 1px solid #d7e3e8;
    border-radius: 11px;
    /*object-fit: cover;*/
}

.ProfileSubmitRow .captcha .txtCaptcha {
    display: block;
    width: 155px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #d7e3e8 !important;
    border-radius: 11px !important;
    background: #fff !important;
    text-align: center;
    box-shadow: none !important;
}

.ProfileSubmitRow .captcha [id$="rfvCaptcha"] {
    position: absolute !important;
    top: 51px;
    right: 4px;
    z-index: 2;
    display: block;
    width: max-content;
    max-width: 170px;
    margin: 0 !important;
    color: #d94c4c !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    white-space: nowrap;
}

.ModernProfilePage .Submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    min-height: 48px;
    height: 48px !important;
    margin: 0 !important;
    padding: 9px 22px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--modern-cyan, #08b8d4) !important;
    color: #fff !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    cursor: pointer;
    box-shadow: 0 11px 25px rgba(8,184,212,.24);
}

.ModernProfilePage .Submit:hover {
    background: var(--modern-cyan-dark, #0797b3) !important;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .ModernProfilePage .sUserInfo1 > tbody {
        grid-template-columns: 1fr;
    }

    .ModernProfilePage .sUserInfo1 tr:nth-child(10),
    .ModernProfilePage .sUserInfo1 tr:nth-child(11) {
        grid-column: auto;
    }

    .ProfileSubmitRow {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .ModernProfilePage .Submit {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .ModernLoginPage,
    .ModernProfilePage,
    .ModernRegisterPage,
    .ModernRecoveryPage {
        width: calc(100% - 20px);
        margin: 18px auto 38px !important;
        padding: 18px 14px 24px !important;
        border-radius: 19px !important;
    }

    .AccountPageHero {
        align-items: flex-start;
        padding: 20px;
        border-radius: 16px;
    }

    .AccountPageHeroIcon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .AccountPageHero h1 {
        font-size: 24px;
    }

    .ModernLoginControl .sServ7 {
        font-size: 21px !important;
    }

    .ModernLoginControl .LoginCtrl0 {
        padding: 22px 17px !important;
        border-radius: 16px !important;
    }

    .ModernLoginControl .LoginCtrl2 > div {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 15px;
    }

    .ModernLoginControl .LoginCtrl4_1 {
        line-height: 2.2;
    }

    .ProfileFormCard {
        padding: 15px;
        border-radius: 16px;
    }

    .ModernProfilePage .sUserInfo1 tr {
        grid-template-columns: 1fr;
        gap: 7px;
        min-height: 0;
        padding: 14px;
    }

    .ModernProfilePage .sUserInfo2,
    .ModernProfilePage .sCart8 {
        padding-left: 0 !important;
    }

    .ProfileSubmitRow {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .ProfileSubmitRow > .sUserInfo3 {
        padding-top: 0 !important;
    }

    .ProfileSubmitRow .captcha {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ProfileSubmitRow .captcha .image-container,
    .ProfileSubmitRow .captcha .control-container {
        width: 100% !important;
    }

    .ProfileSubmitRow .captcha .image,
    .ProfileSubmitRow .captcha .txtCaptcha {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ModernProfilePage .Submit {
        grid-column: auto;
        width: 100% !important;
        justify-self: stretch;
        margin-top: 8px !important;
    }
}


/* Registration page */
.ModernRegisterPage {
    max-width: 1120px;
}

.RegistrationFormCard {
    padding: 26px;
    border: 1px solid #dfe9ed;
    border-radius: 20px;
    background: #f8fbfc;
}

.ModernRegisterPage .RegisterFieldsTable,
.ModernRegisterPage .RegisterCaptchaTable {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    background: transparent !important;
}

.ModernRegisterPage .RegisterFieldsTable > tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    width: 100%;
}

.ModernRegisterPage .RegisterFieldsTable tr {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    min-height: 78px;
    padding: 13px 15px;
    border: 1px solid #e1eaee;
    border-radius: 15px;
    background: #fff;
}

.ModernRegisterPage .RegisterFieldsTable tr.RegisterWideRow {
    grid-column: 1 / -1;
}

.ModernRegisterPage .RegisterFieldsTable td,
.ModernRegisterPage .RegisterCaptchaTable td {
    position: relative;
    display: block;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: middle !important;
}

.ModernRegisterPage .sReg2,
.ModernRegisterPage .sCart8 {
    padding-left: 12px !important;
    color: #2b4658 !important;
    font-size: 13px !important;
    line-height: 1.9;
    text-align: right !important;
    font-weight: 600;
}

.ModernRegisterPage .RegisterFieldsTable input[type="text"],
.ModernRegisterPage .RegisterFieldsTable input[type="password"],
.ModernRegisterPage .RegisterFieldsTable input[type="email"],
.ModernRegisterPage .RegisterFieldsTable textarea,
.ModernRegisterPage .RegisterFieldsTable select,
.ModernRegisterPage .RegisterFieldsTable .FaTextBoxFull,
.ModernRegisterPage .RegisterFieldsTable .EnTextBoxFull {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 48px !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 9px 13px !important;
    border: 1px solid #d7e3e8 !important;
    border-radius: 12px !important;
    background: #fbfdfe !important;
    color: #263c4b !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    outline: 0;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ModernRegisterPage .RegisterFieldsTable textarea {
    height: 112px !important;
    min-height: 112px !important;
    resize: vertical;
}

.ModernRegisterPage .RegisterFieldsTable select {
    appearance: none;
    -webkit-appearance: none;
    padding-left: 38px !important;
    background-image: linear-gradient(45deg, transparent 50%, #71818d 50%), linear-gradient(135deg, #71818d 50%, transparent 50%) !important;
    background-position: 18px 21px, 13px 21px !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
}

.ModernRegisterPage .RegisterFieldsTable input:focus,
.ModernRegisterPage .RegisterFieldsTable textarea:focus,
.ModernRegisterPage .RegisterFieldsTable select:focus {
    border-color: var(--modern-cyan, #08b8d4) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(8, 184, 212, .09) !important;
}

.ModernRegisterPage .RegisterFieldsTable td > span[style*="Red"],
.ModernRegisterPage .RegisterFieldsTable td > span[style*="red"] {
    display: block;
    margin: 6px 2px 0 !important;
    color: #d94c4c !important;
    font-size: 11px !important;
    line-height: 1.7 !important;
}

.ModernRegisterPage .RegisterFieldsTable td > br {
    display: none !important;
}

.ModernRegisterPage .RegisterCaptchaTable {
    margin-top: 18px !important;
}

.ModernRegisterPage .RegisterCaptchaTable > tbody,
.ModernRegisterPage .RegisterCaptchaTable tr {
    display: block;
    width: 100%;
}

.ModernRegisterPage .RegisterCaptchaTable tr {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dfe9ed;
    border-radius: 15px;
    background: #fff;
}

.RegisterCaptchaActions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.ModernRegisterPage .captcha,
.ModernRecoveryPage .captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    width: auto;
    min-width: 0;
    margin: 0 !important;
}

.ModernRegisterPage .captcha:before,
.ModernRegisterPage .captcha:after,
.ModernRecoveryPage .captcha:before,
.ModernRecoveryPage .captcha:after {
    display: none !important;
    content: none !important;
}

.ModernRegisterPage .captcha .image-container,
.ModernRegisterPage .captcha .control-container,
.ModernRecoveryPage .captcha .image-container,
.ModernRecoveryPage .captcha .control-container {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.ModernRegisterPage .captcha .control-container,
.ModernRecoveryPage .captcha .control-container {
    padding-bottom: 18px;
}

.ModernRegisterPage .captcha .control-container br,
.ModernRecoveryPage .captcha .control-container br {
    display: none !important;
}

.ModernRegisterPage .captcha .image,
.ModernRecoveryPage .captcha .image {
    display: block;
    width: 150px !important;
    max-width: 150px !important;
    height: 48px !important;
    margin: 0 !important;
    border: 1px solid #d7e3e8;
    border-radius: 11px;
    background: #fff;
    object-fit: cover;
}

.ModernRegisterPage .captcha .txtCaptcha,
.ModernRecoveryPage .captcha .txtCaptcha {
    display: block;
    width: 155px !important;
    max-width: 155px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #d7e3e8 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #263c4b !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    text-align: center;
    outline: 0;
    box-shadow: none !important;
}

.ModernRegisterPage .captcha .txtCaptcha:focus,
.ModernRecoveryPage .captcha .txtCaptcha:focus {
    border-color: var(--modern-cyan, #08b8d4) !important;
    box-shadow: 0 0 0 4px rgba(8, 184, 212, .09) !important;
}

.ModernRegisterPage .captcha [id$="rfvCaptcha"],
.ModernRecoveryPage .captcha [id$="rfvCaptcha"] {
    position: absolute !important;
    top: 51px;
    right: 4px;
    z-index: 2;
    display: block;
    width: max-content;
    max-width: 180px;
    margin: 0 !important;
    color: #d94c4c !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    white-space: nowrap;
}

.ModernRegisterPage .Submit,
.ModernRecoveryPage .SubmitIBClass {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 48px !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 9px 24px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--modern-cyan, #08b8d4) !important;
    background-image: none !important;
    color: #fff !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500;
    text-indent: 0 !important;
    cursor: pointer;
    box-shadow: 0 11px 25px rgba(8, 184, 212, .24) !important;
}

.ModernRegisterPage .Submit:hover,
.ModernRecoveryPage .SubmitIBClass:hover {
    background: var(--modern-cyan-dark, #0797b3) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 184, 212, .28) !important;
}

.AccountPageAlternateAction {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid #e1e9ed;
    border-radius: 14px;
    background: #f7fafb;
    color: #687986;
    font-size: 13px;
    line-height: 2;
    text-align: center;
}

.AccountPageAlternateAction a {
    margin-right: 4px;
    color: var(--modern-cyan-dark, #0797b3) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.AccountPageAlternateAction a:hover {
    color: #102f42 !important;
}

/* Password recovery page */
.ModernRecoveryPage {
    max-width: 820px;
}

.RecoveryFormCard {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 26px;
    border: 1px solid #dfe9ed;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%);
    box-shadow: 0 14px 36px rgba(7, 26, 43, .06);
}

.ModernRecoveryPage .RecoveryFieldsTable {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    background: transparent !important;
}

.ModernRecoveryPage .RecoveryFieldsTable > tbody {
    display: grid;
    gap: 15px;
    width: 100%;
}

.ModernRecoveryPage .RecoveryFieldsTable tr {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ModernRecoveryPage .RecoveryFieldsTable td {
    position: relative;
    display: block;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: middle !important;
}

.ModernRecoveryPage .sPassRec2,
.ModernRecoveryPage .sPassRec3 {
    color: #2b4658 !important;
    font-size: 13px !important;
    line-height: 1.9;
    text-align: right !important;
    font-weight: 600;
}

.ModernRecoveryPage .RecoveryFieldsTable input[type="text"],
.ModernRecoveryPage .RecoveryFieldsTable input[type="email"],
.ModernRecoveryPage .RecoveryFieldsTable .EnTextBox {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid #d6e3e9 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #213a4b !important;
    font-family: yekan, Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    outline: 0;
    box-shadow: none !important;
}

.ModernRecoveryPage .RecoveryFieldsTable input:focus {
    border-color: var(--modern-cyan, #08b8d4) !important;
    box-shadow: 0 0 0 4px rgba(8, 184, 212, .10) !important;
}

.ModernRecoveryPage .RecoveryFieldsTable td > span[style*="Red"],
.ModernRecoveryPage .RecoveryFieldsTable td > span[style*="red"] {
    display: block;
    margin: 6px 2px 0 !important;
    color: #d94c4c !important;
    font-size: 11px !important;
    line-height: 1.7 !important;
}

.ModernRecoveryPage .RecoveryCaptchaRow {
    align-items: start !important;
    padding-top: 4px;
}

.ModernRecoveryPage .RecoverySubmitRow {
    margin-top: 2px;
}

.ModernRecoveryPage .RecoverySubmitRow td:first-child {
    min-height: 1px;
}

@media (max-width: 900px) {
    .ModernRegisterPage .RegisterFieldsTable > tbody {
        grid-template-columns: 1fr;
    }

    .ModernRegisterPage .RegisterFieldsTable tr.RegisterWideRow {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .RegistrationFormCard,
    .RecoveryFormCard {
        padding: 16px;
        border-radius: 16px;
    }

    .ModernRegisterPage .RegisterFieldsTable tr,
    .ModernRegisterPage .RegisterCaptchaTable tr,
    .ModernRecoveryPage .RecoveryFieldsTable tr {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .ModernRegisterPage .RegisterFieldsTable tr {
        min-height: 0;
        padding: 14px;
    }

    .ModernRegisterPage .sReg2,
    .ModernRegisterPage .sCart8 {
        padding-left: 0 !important;
    }

    .RegisterCaptchaActions,
    .ModernRegisterPage .captcha,
    .ModernRecoveryPage .captcha {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ModernRegisterPage .captcha .image-container,
    .ModernRegisterPage .captcha .control-container,
    .ModernRecoveryPage .captcha .image-container,
    .ModernRecoveryPage .captcha .control-container {
        width: 100% !important;
    }

    .ModernRegisterPage .captcha .image,
    .ModernRegisterPage .captcha .txtCaptcha,
    .ModernRecoveryPage .captcha .image,
    .ModernRecoveryPage .captcha .txtCaptcha {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ModernRegisterPage .Submit,
    .ModernRecoveryPage .SubmitIBClass {
        width: 100% !important;
    }

    .ModernRecoveryPage .RecoverySubmitRow td:first-child {
        display: none;
    }
}
