body.login {
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
    background: radial-gradient(ellipse at 50% 0, #e7f1fa 0, #f4f7fa 60%);
    color: #18334b;
    font-family: "Vazirmatn", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.otp-feedback-info { background: #eef6ff; border: 1px solid #d7e8fa; color: #315e86; border-radius: 10px; padding: 12px 14px; line-height: 1.9; }
body.login #login { width: min(448px, calc(100% - 32px)); padding: clamp(32px, 6vh, 64px) 0 24px; margin: 0 auto; }
body.login #login > h1 { display: none; }
.otp-user-flow { box-sizing: border-box; padding: 32px; border: 1px solid #e2eaf2; border-radius: 22px; background: #fff; box-shadow: 0 14px 48px #203f5b0a; }
.otp-user-flow * { box-sizing: border-box; }
.otp-flow-heading { text-align: center; }
.otp-flow-heading .otp-site-logo { display: block; width: 176px; height: auto; max-height: 72px; object-fit: contain; margin: 0 auto 26px; }
.otp-flow-heading .otp-eyebrow { margin: 0 0 7px; color: #7b8da0; font-size: 12px; font-weight: 400; }
.otp-flow-heading h2 { margin: 0; color: #17344e; font-size: 23px; font-weight: 700; line-height: 1.7; }
.otp-flow-heading #otp-step-description,
.otp-flow-heading #mobile-description { margin: 7px 0 0; color: #667b90; font-size: 13px; line-height: 1.95; }
body.login .otp-intro { margin: 20px 0 24px; padding: 12px 14px; border: 1px solid #e7edf4; border-radius: 10px; background: #f8fafc; color: #61758a; font-size: 12px; line-height: 1.95; text-align: center; }
.otp-intro bdi { display: inline-block; color: #2c4d6e; font-size: 14px; font-weight: 500; white-space: nowrap; }
body.login .otp-user-flow form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.otp-user-flow .otp-field { margin: 0 0 20px; }
.otp-user-flow .otp-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
body.login .otp-user-flow label { display: block; margin: 0 0 9px; color: #304b64; font-family: inherit; font-size: 13px; font-weight: 500; }
.otp-user-flow .otp-label-row label { margin: 0; }
.otp-user-flow .otp-input-wrap { position: relative; }
.otp-user-flow .otp-input-wrap svg { position: absolute; right: 15px; top: 17px; width: 21px; height: 21px; color: #8a9caf; pointer-events: none; }
body.login .otp-user-flow .input { width: 100%; height: 56px; margin: 0; padding: 12px 16px; border: 1px solid #cad7e4; border-radius: 10px; background: #fff; color: #203f5d; font-family: "Vazirmatn", sans-serif; font-size: 19px; font-weight: 500; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
body.login .otp-user-flow .otp-input-wrap .input { padding-right: 48px; letter-spacing: .6px; }
.otp-user-flow .input::placeholder { color: #9aabbb; font-weight: 400; opacity: 1; }
body.login .otp-user-flow .input:focus { outline: 0; border-color: #3685c8; box-shadow: 0 0 0 3px #3685c81a; }
body.login .otp-user-flow .otp-account-picker { min-width: 0; padding: 0; border: 0; }
.otp-account-picker legend { margin-bottom: 12px; color: #304b64; font-size: 13px; font-weight: 500; }
.otp-account-options { display: grid; gap: 12px; }
body.login .otp-user-flow .otp-account-card { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 66px; padding: 15px; border: 1px solid #dce6ef; border-radius: 12px; background: #fbfdff; cursor: pointer; transition: border-color .15s, background .15s; }
.otp-account-card:has(input:checked) { border-color: #2077b7 !important; background: #edf6ff !important; box-shadow: 0 0 0 1px #2077b7; }
.otp-account-card:focus-within { outline: 2px solid #2077b7; outline-offset: 3px; }
.otp-account-card input[type=radio] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #2077b7; }
.otp-account-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.9; }
.otp-registration-trap { position: absolute; clip: rect(0, 0, 0, 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.otp-email-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e2eaf2; }
.otp-email-section h2 { font-size: 19px; margin: 0 0 14px; }
.otp-security-sections { display: grid; gap: 14px; margin-top: 24px; }
.otp-security-section { border: 1px solid #dce7f1; border-radius: 13px; background: #fbfdff; min-width: 0; }
.otp-security-section > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; cursor: pointer; }
.otp-security-section > summary::-webkit-details-marker { display: none; }
.otp-security-section > summary:focus-visible { outline: 2px solid #2077b7; outline-offset: 3px; border-radius: 12px; }
.otp-section-heading { display: grid; gap: 5px; }
.otp-section-title { font-size: 15px; font-weight: 650; color: #264762; }
.otp-section-status { font-size: 11px; color: #7890a6; direction: rtl; unicode-bidi: plaintext; }
.otp-chevron { display: block; flex: 0 0 20px; color: #48799f; transition: transform .15s; }
.otp-security-section[open] { background: #fff; border-color: #aac8df; }
.otp-security-section[open] > summary { border-bottom: 1px solid #e6edf4; }
.otp-security-section[open] > summary > .otp-chevron, .otp-manual-key[open] > summary > .otp-chevron { transform: rotate(180deg); }
.otp-section-content { padding: 20px 16px; }
.otp-section-content .otp-phone-change, .otp-section-content .otp-email-section { margin: 0; padding: 0; border: 0; }
.otp-section-content .otp-phone-change > h2, .otp-section-content .otp-email-section > h2 { display: none; }
.otp-section-content .otp-setup-title { margin-top: 0; }
.otp-section-content .otp-email-section > p:first-of-type { margin-top: 0; }
@media(prefers-reduced-motion:reduce) { .otp-chevron { transition: none; } }
body.login .otp-email-section > form, body.login .otp-email-section details > form { margin-top: 20px; }
body.login .otp-user-flow .input[aria-invalid=true] { border-color: #ca6961; }
body.login .otp-user-flow input[readonly] { background: #f6f8fb; color: #526d86; }
.otp-user-flow .otp-field-help { margin: 8px 0 0; color: #8392a2; font-size: 11px; line-height: 1.9; }
body.login .otp-user-flow #otp-code { font-size: 25px; letter-spacing: 9px; text-align: center; }
.otp-user-flow .otp-change-phone { padding: 0; border: 0; background: none; color: #276da8; font-family: inherit; font-size: 11px; cursor: pointer; }
body.login .otp-user-flow .button { display: block; float: none; width: 100%; min-height: 48px; margin: 0; padding: 10px 16px; border: 1px solid #2077b7; border-radius: 10px; background: #2077b7; color: #fff; font-family: "Vazirmatn", sans-serif; font-size: 14px; font-weight: 500; line-height: 1.8; text-align: center; text-decoration: none; box-shadow: none; transition: background .15s; cursor: pointer; }
body.login .otp-user-flow .button:hover { background: #196ba9; border-color: #196ba9; }
body.login .otp-user-flow .button + .button { margin-top: 12px; }
body.login .otp-user-flow .input + .button { margin-top: 20px; }
body.login .otp-user-flow .otp-password-wrap + .button { margin-top: 20px; }
.otp-password-wrap { position: relative; }
body.login .otp-user-flow .otp-password-wrap .input { padding-right: 76px; }
.otp-toggle-password { position: absolute; right: 12px; top: 10px; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 6px; border: 0; border-radius: 6px; background: #edf4fb; color: #286a9c; cursor: pointer; }
.otp-toggle-password:focus-visible { outline: 2px solid #2077b7; outline-offset: 2px; }
.otp-backup { margin: 24px 0; padding: 16px; border: 1px solid #dce7f1; border-radius: 10px; background: #f7fafd; }
body.login .otp-user-flow .otp-backup label { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 0; line-height: 1.95; font-size: 12px; }
.otp-backup input[type=checkbox] { flex-shrink: 0; margin-top: 5px; }
.otp-qr-card { margin: 24px 0; padding: 20px; border: 1px solid #dce9f3; border-radius: 18px; background: linear-gradient(155deg, #f8fbfe, #edf6fb); text-align: center; }
.otp-qr-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid #e2edf5; border-radius: 999px; background: #fff; color: #39769d; font-size: 12px; }
.otp-qr-badge svg { width: 16px; height: 16px; }
.otp-qr-frame { position: relative; width: 248px; max-width: 100%; margin: 20px auto; padding: 10px; border: 1px solid #e0eaf2; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px #1743660a; }
.otp-qr { width: 100%; margin: 0; }
.otp-qr svg { display: block; width: 100%; height: auto; }
.otp-scan-corner { position: absolute; width: 20px; height: 20px; border: 2px solid #2d94bd; pointer-events: none; }
.otp-scan-tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0; }
.otp-scan-tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.otp-scan-bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.otp-scan-br { bottom: 4px; right: 4px; border-left: 0; border-top: 0; border-radius: 0 0 6px; }
.otp-user-flow .otp-qr-caption { margin: 0; color: #648198; font-size: 11px; line-height: 1.9; }
.otp-manual-key { margin: 20px 0; font-size: 12px; color: #397299; }
.otp-manual-key summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.otp-manual-key summary::-webkit-details-marker { display: none; }
.otp-setup-title { margin: 24px 0 12px; font-size: 16px; color: #193b56; }
.otp-manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 20px; }
.otp-manual-wide { grid-column: 1 / -1; }
.otp-manual-field { display: flex; flex-direction: column; }
body.login .otp-user-flow .otp-manual-grid .input { height: 44px; font-size: 13px; padding: 10px 12px; margin-top: auto; }
body.login .otp-user-flow #totp-manual-secret { height: 76px; font-family: monospace; font-size: 14px; line-height: 1.8; resize: none; overflow-wrap: anywhere; word-break: break-all; }
.otp-phone-change { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e2eaf2; }
.otp-phone-change h2 { margin: 0 0 12px; font-size: 18px; }
body.login .otp-phone-change form { margin-top: 20px; }
body.login .otp-phone-change .button ~ .button { margin-top: 12px; }
body.login .otp-user-flow .otp-flow-heading + form,
body.login .otp-user-flow > p + form { margin-top: 24px; }
body.login .otp-user-flow #mobile-resend { border-color: #d7e3ef; background: #f7fafd; color: #397299; font-size: 12px; min-height: 44px; }
body.login .otp-user-flow #mobile-resend:hover { background: #edf4fb; border-color: #b6cede; }
body.login .otp-user-flow[data-step=code] .otp-send { margin-top: 12px; border-color: #d7e3ef; background: #f7fafd; color: #397299; font-size: 12px; min-height: 42px; }
body.login .otp-user-flow .button:disabled { opacity: .6; cursor: default; }
.otp-user-flow .otp-timer { min-height: 21px; margin: 9px 0 0; color: #7e90a2; font-size: 11px; text-align: center; line-height: 1.9; }
.otp-feedback { margin: 0 0 20px; padding: 11px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; line-height: 1.95; }
.otp-feedback-success { background: #edf7f2; border-color: #d8ece1; color: #39715b; }
.otp-feedback-error { background: #fff3f1; border-color: #f1dcd7; color: #a64f45; }
.otp-user-flow .otp-security-note { margin: 21px 0 0; padding-top: 17px; border-top: 1px solid #edf1f5; color: #8391a0; font-size: 11px; line-height: 1.9; text-align: center; }
body.login #nav { margin: 20px 0 0; padding: 0; text-align: center; font-family: "Vazirmatn", sans-serif; font-size: 12px; }
body.login #nav a { color: #74879b; text-decoration: none; }
body.login #nav a:hover { color: #2077b7; }
body.login #login_error, body.login .message { border-radius: 9px; font-family: inherit; font-size: 12px; line-height: 1.95; }
.otp-user-flow [hidden] { display: none !important; }
.otp-user-flow[data-step=code] .otp-first-time { display: none; }
.otp-user-flow[data-step=code] form { margin-top: 24px; }
.otp-user-flow #otp-code-step .otp-verify { margin-top: 18px; }
.otp-password-stage label:not(:first-child){margin-top:18px!important}.otp-password-stage{margin-top:20px!important}.otp-account-links{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:20px;font-size:12px}.otp-account-links a,.otp-security-note a{color:#397299;text-decoration:none}.otp-methods{border:1px solid #e1e9f2;padding:12px;border-radius:10px;margin:18px 0}.otp-methods legend{font-size:12px;color:#61758a}.otp-methods label{display:inline-flex!important;align-items:center;gap:5px;margin:0 0 0 10px!important;font-size:12px!important}.otp-methods input{margin:0}.otp-recovery-option{font-size:11px!important;line-height:1.9;margin-bottom:18px!important}.otp-setup-key{display:block;overflow-wrap:anywhere;background:#f5f8fc;padding:14px;margin:20px 0;letter-spacing:1px;font-size:15px}.otp-user-flow[data-step=password] .otp-first-time{display:none}
.otp-methods { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.otp-methods legend { padding: 0 6px; margin-bottom: 8px; }
body.login .otp-user-flow .otp-methods label { margin: 0 !important; }
@media (max-width: 480px) {
    .otp-qr-card { padding: 16px; }
    .otp-manual-grid { grid-template-columns: 1fr; }
    body.login #login { padding-top: 24px; }
    .otp-user-flow { padding: 26px 22px; border-radius: 18px; }
    .otp-flow-heading h2 { font-size: 21px; }
    .otp-flow-heading .otp-site-logo { width: 158px; margin-bottom: 23px; }
}
body.login .otp-user-flow .otp-email-resend { background: #f1f7fd; color: #32658e; border: 1px solid #c9dced; }
body.login .otp-user-flow .otp-email-resend:hover { background: #e6f0fa; border-color: #aac7df; }
.otp-email-timer { text-align: center; margin-top: 12px; }
.otp-email-section form[data-email-step] > .otp-field-help:first-of-type { margin: 0 0 20px; }
