:root {
    --auth-paper: #fdfcf8; --auth-surface: #fffefa; --auth-ink: #203e36; --auth-muted: #6c8177;
    --auth-accent: #246855; --auth-soft: #edf3e9; --auth-line: #dfe6dc; --auth-field: #fafbf6;
    --auth-danger: #a13d38; --auth-danger-bg: #fff1ed; --auth-gold: #8e7b50;
}
[data-bs-theme="dark"] {
    --auth-paper: #15251f; --auth-surface: #1d3028; --auth-ink: #e6eee5; --auth-muted: #a6b9ab;
    --auth-accent: #94c8ac; --auth-soft: #273e30; --auth-line: #3a5042; --auth-field: #21362c;
    --auth-danger: #f3b2a9; --auth-danger-bg: #482b29; --auth-gold: #c8b586;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--auth-ink); background: var(--auth-paper); font: 400 14px/1.9 Vazirmatn, sans-serif; -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, p) { margin: 0; }
a { color: var(--auth-accent); text-decoration: none; }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #81ae91; outline-offset: 4px; }
[hidden] { display: none !important; }
.hp-svg, .sh-svg { display: inline-block; width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.auth-header { width: calc(100% - 80px); max-width: 1280px; margin-inline: auto; min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--auth-ink); min-height: 48px; }
.auth-brand-mark { width: 45px; height: 45px; border: 1px solid var(--auth-line); background: #fffefa; border-radius: 15px; display: grid; place-items: center; }
.auth-brand img { width: 36px; height: 36px; object-fit: contain; }
.auth-brand strong { display: block; font-size: 22px; line-height: 1.35; font-weight: 800; }
.auth-brand small { display: block; font-size: 10px; color: var(--auth-muted); }
.auth-back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 9px; font-size: 12px; color: var(--auth-muted); }
.auth-back .hp-svg { width: 17px; height: 17px; transform: rotate(180deg); }
.auth-back:hover { color: var(--auth-accent); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); width: calc(100% - 80px); max-width: 1120px; margin: 16px auto 32px; background: var(--auth-surface); border: 1px solid var(--auth-line); border-radius: 28px; overflow: hidden; box-shadow: 0 14px 60px #24433305; }
.auth-main { min-width: 0; padding: 44px 48px; align-self: center; }
.auth-shell--login .auth-main, .auth-shell--verify .auth-main { padding-block: 48px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--auth-line); background: var(--auth-soft); color: var(--auth-accent); font-size: 10px; font-weight: 550; }
.auth-kicker .hp-svg { width: 15px; height: 15px; }
.auth-heading { margin-bottom: 27px; }
.auth-heading h1 { margin: 14px 0 7px; font-size: clamp(26px, 2.3vw, 32px); font-weight: 800; line-height: 1.6; letter-spacing: -.8px; }
.auth-heading p { color: var(--auth-muted); font-size: 12px; line-height: 2.1; }
.auth-heading p bdi { color: var(--auth-ink); font-weight: 600; }
.auth-form { display: grid; gap: 19px; }
.auth-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.auth-field { min-width: 0; }
.auth-field > label, .auth-birthday legend { display: block; margin-bottom: 7px; color: var(--auth-ink); font-size: 12px; font-weight: 550; }
.auth-field > label small, .auth-optional small { font-size: 10px; color: var(--auth-muted); font-weight: 400; }
.auth-input { width: 100%; min-width: 0; min-height: 49px; border: 1px solid var(--auth-line); border-radius: 11px; background: var(--auth-field); color: var(--auth-ink); padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-input::placeholder { color: var(--auth-muted); opacity: .7; font-size: 12px; }
.auth-input:focus { border-color: #83ab91; box-shadow: 0 0 0 3px #83ab911f; }
.auth-input[aria-invalid="true"] { border-color: var(--auth-danger); }
.auth-input[dir="ltr"] { text-align: right; }
.auth-input[type="tel"], .auth-input[name="national_code"] { letter-spacing: 1px; }
.auth-password { position: relative; }
.auth-password .auth-input { padding-inline-end: 51px; }
.auth-password-toggle { position: absolute; inset-inline-end: 3px; top: 2px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--auth-muted); border: 0; border-radius: 8px; background: transparent; }
.auth-password-toggle:hover { color: var(--auth-accent); background: var(--auth-soft); }
.auth-password-toggle svg { width: 19px; height: 19px; }
.auth-password-toggle[data-visible="true"] .auth-eye-slash { display: none; }
.auth-hint, .auth-field-error { display: block; margin-top: 5px; font-size: 10px; line-height: 1.9; color: var(--auth-muted); }
.auth-field-error { color: var(--auth-danger); }
.auth-forgot { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px -7px; font-size: 11px; justify-self: end; }
.auth-forgot:hover, .auth-switch a:hover, .auth-legal a:hover, .auth-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid #246855; border-radius: 11px; background: #246855; color: #fff; font-size: 13px; font-weight: 650; transition: background .15s, transform .15s; }
.auth-submit:hover { background: #1d5646; }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { cursor: wait; opacity: .8; }
.auth-submit .hp-svg { width: 18px; height: 18px; }
[data-submit-label], [data-submit-progress] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
[data-submit-spinner] { width: 17px; height: 17px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.auth-switch { padding-top: 3px; text-align: center; font-size: 11px; color: var(--auth-muted); }
.auth-switch a { display: inline-flex; align-items: center; min-height: 44px; margin-inline-start: 5px; font-weight: 650; }
.auth-alert { border: 1px solid #e7c6bd; background: var(--auth-danger-bg); color: var(--auth-danger); border-radius: 12px; padding: 12px 15px; margin-bottom: 20px; font-size: 11px; line-height: 2; }
.auth-alert strong { font-weight: 650; }
.auth-alert ul { padding-inline-start: 18px; margin: 5px 0 0; }
.auth-status { padding: 10px 13px; background: var(--auth-soft); border: 1px solid var(--auth-line); border-radius: 10px; color: var(--auth-ink); font-size: 11px; }
.auth-status[data-error="true"] { color: var(--auth-danger); background: var(--auth-danger-bg); }
.auth-birthday { min-width: 0; margin: 0; border: 0; padding: 0; }
.auth-birthday legend { padding: 0; margin-bottom: 8px; }
.auth-birthday-grid { display: grid; grid-template-columns: 1.1fr 1.35fr 1fr; gap: 10px; }
.auth-birthday-grid label { font-size: 10px; color: var(--auth-muted); margin-bottom: 4px; }
.auth-birthday select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23728c7d' stroke-width='1.5'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; padding-inline-end: 25px; font-size: 12px; }
.auth-date-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.auth-date-note .auth-hint { margin: 0; }
.auth-date-preview { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--auth-muted); font-size: 9px; }
.auth-date-preview input { width: 78px; padding: 0; border: 0; background: none; color: inherit; font-size: 9px; text-align: left; opacity: 1; }
.auth-optional { border: 1px solid var(--auth-line); border-radius: 11px; background: var(--auth-field); }
.auth-optional summary { list-style: none; min-height: 46px; display: flex; align-items: center; gap: 8px; padding: 10px 13px; cursor: pointer; font-size: 11px; color: var(--auth-ink); }
.auth-optional summary::-webkit-details-marker { display: none; }
.auth-optional summary .hp-svg { width: 16px; height: 16px; color: var(--auth-muted); }
.auth-optional summary::after { content: '+'; margin-inline-start: auto; color: var(--auth-muted); font-size: 20px; line-height: 1; }
.auth-optional[open] summary::after { content: '−'; }
.auth-optional-body { padding: 4px 13px 14px; display: grid; gap: 13px; }
.auth-optional-body .auth-hint { margin: 0; }
.auth-legal { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; color: var(--auth-muted); font-size: 10px; line-height: 2.1; min-height: 44px; }
.auth-legal input { flex: 0 0 18px; width: 18px; height: 18px; margin: 4px 0 0; accent-color: #246855; }
.auth-legal a { font-weight: 550; }
.auth-aside { position: relative; min-width: 0; background: var(--auth-soft); border-inline-start: 1px solid var(--auth-line); padding: 42px 42px 32px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-aside-topline { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 550; color: var(--auth-accent); margin-bottom: 14px; }
.auth-aside-topline .hp-svg { width: 17px; height: 17px; }
.auth-aside h2 { font-size: clamp(27px, 2.7vw, 37px); font-weight: 800; line-height: 1.65; letter-spacing: -1px; }
.auth-aside h2 em { display: inline-block; position: relative; font-style: normal; color: var(--auth-accent); z-index: 0; }
.auth-aside h2 em::after { content: ''; position: absolute; inset-inline: -2px; bottom: 4px; height: 9px; background: #d9e6cb; z-index: -1; border-radius: 8px 1px 9px 1px; transform: rotate(-2deg); }
.auth-aside-description { color: var(--auth-muted); font-size: 12px; line-height: 2.15; margin-top: 13px; }
.auth-illustration { position: relative; padding: 25px 6px 33px; margin-block: 8px 18px; isolation: isolate; }
.auth-illustration::before { content: ''; position: absolute; inset: 8px 0 0; z-index: -1; border: 1px solid #d9e3d1; background: #e4edda; border-radius: 44% 56% 54% 46%; transform: rotate(-6deg); }
.auth-sample-card { position: relative; border: 1px solid var(--auth-line); border-radius: 17px; background: var(--auth-surface); padding: 20px; box-shadow: 0 12px 35px #31503b09; transform: rotate(2deg); }
.auth-sample-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--auth-line); }
.auth-sample-symbol { width: 39px; height: 39px; flex-shrink: 0; display: grid; place-items: center; background: var(--auth-soft); color: var(--auth-accent); border-radius: 12px; }
.auth-sample-heading strong { display: block; font-size: 11px; font-weight: 650; }
.auth-sample-heading small { display: block; color: var(--auth-muted); font-size: 9px; }
.auth-sample-heading > .hp-svg { margin-inline-start: auto; width: 17px; height: 17px; color: #84a181; }
.auth-sample-row { display: flex; align-items: center; gap: 9px; padding-top: 13px; font-size: 10px; color: var(--auth-muted); }
.auth-sample-row > .hp-svg { width: 17px; height: 17px; color: #80a08b; }
.auth-sample-line { flex: 1; height: 5px; border-radius: 5px; background: var(--auth-soft); }
.auth-sample-line--short { max-width: 62px; }
.auth-sample-float { position: relative; display: flex; align-items: center; gap: 9px; width: fit-content; margin: -10px auto 0 0; padding: 10px 14px; border: 1px solid var(--auth-line); background: var(--auth-surface); color: var(--auth-ink); border-radius: 11px; font-size: 10px; box-shadow: 0 8px 24px #31503b05; transform: rotate(-3deg); }
.auth-sample-float .hp-svg { width: 19px; height: 19px; color: var(--auth-accent); }
.auth-benefits { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--auth-ink); }
.auth-benefits .hp-svg { width: 17px; height: 17px; color: var(--auth-accent); }
.auth-trial { display: flex; align-items: center; gap: 11px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--auth-line); }
.auth-trial > span { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ded7c3; background: #f7f3e8; color: var(--auth-gold); border-radius: 10px; font-size: 20px; font-weight: 750; }
.auth-trial strong { display: block; font-size: 10px; font-weight: 600; }
.auth-trial small { display: block; font-size: 9px; color: var(--auth-muted); }
.auth-footer { width: calc(100% - 40px); max-width: 1120px; margin: 0 auto 26px; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--auth-muted); font-size: 10px; }
.auth-footer-note { display: flex; align-items: center; gap: 7px; }
.auth-footer-note .hp-svg { width: 15px; height: 15px; }
.auth-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.auth-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--auth-muted); }
.auth-steps { display: flex; gap: 15px; list-style: none; padding: 0; margin: 0 0 21px; }
.auth-steps li { display: inline-flex; align-items: center; gap: 6px; color: var(--auth-muted); font-size: 10px; }
.auth-steps li > span { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--auth-line); border-radius: 50%; font-size: 10px; }
.auth-steps [aria-current="step"] { color: var(--auth-accent); font-weight: 600; }
.auth-steps [aria-current="step"] > span { background: var(--auth-soft); border-color: #a8c2ae; }
.auth-code { direction: ltr; text-align: center !important; font-size: 26px; letter-spacing: 12px; min-height: 67px; padding-inline: 24px 12px; font-weight: 600; }
.auth-code::placeholder { font-size: 25px; letter-spacing: 12px; opacity: .4; }
.auth-resend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: var(--auth-muted); }
.auth-resend a { min-height: 44px; display: inline-flex; align-items: center; }
.auth-edit-mobile { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 10px; margin-top: 4px; }
.auth-noscript { border: 1px solid var(--auth-line); border-radius: 10px; padding: 10px 13px; color: var(--auth-danger); font-size: 11px; }
[data-bs-theme="dark"] .auth-aside h2 em::after { background: #3a5337; }
[data-bs-theme="dark"] .auth-illustration::before { background: #314631; border-color: #405740; }
[data-bs-theme="dark"] .auth-trial > span { background: #403b2d; border-color: #5e5337; }
[data-bs-theme="dark"] .auth-alert { border-color: #6b4540; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .auth-header { min-height: 124px; } .auth-shell { margin-top: 35px; } }
@media (max-width: 1100px) { .auth-shell, .auth-header { width: calc(100% - 48px); } .auth-main { padding: 34px 30px; } .auth-aside { padding: 34px 28px; } .auth-aside h2 { font-size: 30px; } }
@media (max-width: 850px) {
    .auth-header { min-height: 84px; }
    .auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 550px; margin-top: 12px; }
    .auth-main, .auth-shell--login .auth-main, .auth-shell--verify .auth-main { padding: 32px; }
    .auth-aside { border-inline-start: 0; border-top: 1px solid var(--auth-line); padding: 22px 30px; }
    .auth-aside-topline, .auth-illustration, .auth-aside-description, .auth-benefits { display: none; }
    .auth-aside h2 { font-size: 20px; letter-spacing: -.3px; }
    .auth-aside h2 br { display: none; }
    .auth-trial { margin-top: 13px; padding-top: 13px; }
    .auth-footer { flex-direction: column; gap: 4px; margin-bottom: 15px; text-align: center; }
    .auth-footer-note { justify-content: center; }
}
@media (max-width: 480px) {
    .auth-header { width: calc(100% - 32px); min-height: 76px; }
    .auth-brand strong { font-size: 20px; }
    .auth-brand small { font-size: 8px; }
    .auth-brand-mark { width: 39px; height: 39px; border-radius: 12px; }
    .auth-brand img { width: 31px; height: 31px; }
    .auth-back { gap: 5px; font-size: 10px; }
    .auth-back .hp-svg { width: 15px; height: 15px; }
    .auth-shell { width: calc(100% - 24px); margin: 7px auto 19px; border-radius: 21px; }
    .auth-main, .auth-shell--login .auth-main, .auth-shell--verify .auth-main { padding: 26px 22px; }
    .auth-heading { margin-bottom: 24px; }
    .auth-heading h1 { font-size: 26px; }
    .auth-heading p { font-size: 11px; }
    .auth-fields-row { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .auth-form { gap: 17px; }
    .auth-input { font-size: 16px; }
    .auth-birthday-grid { gap: 7px; }
    .auth-birthday select { font-size: 16px; padding-inline-start: 10px; }
    .auth-date-preview { font-size: 8px; }
    .auth-aside { padding: 20px 22px; }
    .auth-aside h2 { font-size: 18px; }
    .auth-footer-note { font-size: 9px; line-height: 1.9; }
}
@media (max-width: 359px) {
    .auth-main, .auth-shell--login .auth-main, .auth-shell--verify .auth-main { padding: 23px 17px; }
    .auth-brand small { display: none; }
    .auth-birthday-grid { grid-template-columns: 1fr 1.2fr .9fr; gap: 5px; }
    .auth-birthday select { padding-inline-start: 8px; padding-inline-end: 20px; background-position: 6px center; }
    .auth-heading h1 { font-size: 24px; }
    .auth-date-preview { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Shared security challenge and account recovery. */
.auth-captcha { min-width: 0; padding: 15px; border: 1px solid var(--auth-line); border-radius: 15px; background: var(--auth-field); }
.auth-captcha-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 12px; }
.auth-captcha-heading > span { display: inline-flex; align-items: center; gap: 7px; color: var(--auth-accent); font-size: 11px; font-weight: 650; }
.auth-captcha-heading .hp-svg { width: 16px; height: 16px; }
.auth-captcha-heading small { color: var(--auth-muted); font-size: 9px; }
.auth-captcha-picture { display: flex; align-items: stretch; gap: 10px; margin-bottom: 13px; }
.auth-captcha-picture img { display: block; width: min(220px, calc(100% - 72px)); min-width: 0; height: auto; aspect-ratio: 11 / 4; object-fit: contain; border: 1px solid var(--auth-line); border-radius: 10px; background: #edf3e9; flex: 1; }
.auth-captcha-refresh { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 62px; gap: 4px; min-height: 52px; border: 1px solid var(--auth-line); border-radius: 10px; background: var(--auth-surface); color: var(--auth-accent); padding: 8px 4px; font-size: 8px; }
.auth-captcha-refresh:hover { background: var(--auth-soft); border-color: #98b29d; }
.auth-captcha-refresh svg { width: 19px; height: 19px; }
.auth-captcha[aria-busy="true"] .auth-captcha-refresh svg { animation: auth-spin .85s linear infinite; }
.auth-captcha[aria-busy="true"] .auth-captcha-picture img { opacity: .45; }
.auth-captcha-refresh:disabled { opacity: .6; cursor: wait; }
.auth-captcha .auth-field > label { font-size: 10px; }
.auth-captcha-answer { letter-spacing: 5px; text-align: center !important; background: var(--auth-surface); }
.auth-captcha-answer::placeholder { letter-spacing: 0; font-size: 11px; }
.auth-captcha .auth-hint { font-size: 9px; }
.auth-captcha-status { font-size: 10px; line-height: 1.9; color: var(--auth-muted); margin-top: 9px; }
.auth-captcha-status[data-error="true"] { color: var(--auth-danger); }
.auth-notice { border: 1px solid var(--auth-line); background: var(--auth-soft); color: var(--auth-ink); border-radius: 12px; padding: 12px 15px; margin-bottom: 20px; font-size: 11px; line-height: 2; }
.auth-security-note { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: var(--auth-muted); }
.auth-security-note .hp-svg { margin-top: 2px; width: 15px; height: 15px; }
.auth-verification-help { padding-inline-start: 12px; border-inline-start: 2px solid #9eb49b; margin-top: -3px; }
.auth-verification-help > span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--auth-ink); font-weight: 550; }
.auth-verification-help .hp-svg { width: 14px; height: 14px; }
.auth-verification-help p { font-size: 9px; color: var(--auth-muted); margin-top: 4px; }
.auth-resend { padding-top: 5px; }
.auth-resend-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--auth-line); border-radius: 9px; background: var(--auth-field); color: var(--auth-accent); font-size: 10px; }
.auth-resend-button:hover:not(:disabled) { border-color: #98b29d; background: var(--auth-soft); }
.auth-resend-button:disabled { cursor: default; color: var(--auth-muted); }
.auth-resend-button [data-submit-spinner] { border-color: var(--auth-line); border-top-color: var(--auth-accent); }
.auth-resend > p { width: 100%; text-align: center; font-size: 9px; line-height: 1.9; }
.auth-shell--forgot .auth-heading h1, .auth-shell--reset .auth-heading h1 { font-size: clamp(24px, 2.2vw, 30px); }
.auth-recovery-illustration { position: relative; display: flex; align-items: center; flex-direction: column; padding: 24px 0 27px; margin: 15px 0 22px; }
.auth-recovery-orbit { width: 164px; height: 164px; border: 1px dashed #afc7ad; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--auth-surface) 45%, transparent 46%); }
.auth-recovery-orbit > span { width: 98px; height: 98px; border: 1px solid var(--auth-line); background: var(--auth-surface); border-radius: 31px; display: grid; place-items: center; transform: rotate(-9deg); box-shadow: 0 10px 30px #24433309; }
.auth-recovery-orbit .hp-svg { width: 51px; height: 51px; color: var(--auth-accent); transform: rotate(9deg); stroke-width: 1.2; }
.auth-recovery-card { position: relative; display: flex; align-items: center; gap: 11px; width: 92%; border: 1px solid var(--auth-line); border-radius: 15px; padding: 16px; background: var(--auth-surface); box-shadow: 0 12px 25px #24433307; margin-top: -17px; transform: rotate(2deg); }
.auth-recovery-card > span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--auth-soft); color: var(--auth-accent); }
.auth-recovery-card strong, .auth-recovery-card small { display: block; }
.auth-recovery-card strong { font-size: 12px; }
.auth-recovery-card small { font-size: 9px; color: var(--auth-muted); }
.auth-recovery-card > .hp-svg { color: var(--auth-accent); margin-inline-start: auto; width: 19px; height: 19px; }
.auth-recovery-dots { display: flex; align-items: center; gap: 9px; border: 1px solid var(--auth-line); border-radius: 10px; background: var(--auth-surface); padding: 17px 22px; margin: -3px auto 0 9%; z-index: 1; transform: rotate(-4deg); }
.auth-recovery-dots i { display: block; width: 7px; height: 7px; background: var(--auth-accent); border-radius: 50%; opacity: .65; }
.auth-recovery-note { margin-top: 25px; border-top: 1px solid var(--auth-line); padding-top: 18px; font-size: 10px; color: var(--auth-muted); }
@media (max-width: 850px) {
    .auth-recovery-illustration { display: none; }
    .auth-recovery-note { margin-top: 12px; padding-top: 12px; }
}
@media (max-width: 480px) {
    .auth-captcha { padding: 12px; }
    .auth-captcha-picture { gap: 8px; }
    .auth-captcha-heading small { font-size: 8px; }
    .auth-code { font-size: 24px; letter-spacing: 8px; }
    .auth-code::placeholder { letter-spacing: 8px; }
    .auth-resend { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) { .auth-captcha[aria-busy="true"] .auth-captcha-refresh svg { animation: none; } }

/* Optional key-based account access. */
textarea { font: inherit; }
.auth-key-icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.auth-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-anonymous-link { display: flex; align-items: center; gap: 11px; margin-top: 23px; padding: 15px; min-height: 66px; border: 1px solid var(--auth-line); border-radius: 13px; background: var(--auth-field); color: var(--auth-accent); }
.auth-anonymous-link > .auth-key-icon { width: 21px; height: 21px; }
.auth-anonymous-link > span { font-size: 11px; font-weight: 600; }
.auth-anonymous-link small { display: block; margin-top: 2px; font-size: 9px; color: var(--auth-muted); font-weight: 400; }
.auth-anonymous-link > .hp-svg { width: 17px; height: 17px; margin-inline-start: auto; }
.auth-anonymous-link:hover { border-color: #a3bba5; background: var(--auth-soft); }
.auth-key-intro { display: flex; gap: 12px; padding: 15px; border: 1px solid var(--auth-line); border-radius: 14px; background: var(--auth-soft); margin-bottom: 21px; }
.auth-key-symbol { width: 38px; height: 38px; border: 1px solid var(--auth-line); background: var(--auth-surface); display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; color: var(--auth-accent); }
.auth-key-intro strong { display: block; font-size: 11px; }
.auth-key-intro p { font-size: 10px; color: var(--auth-muted); line-height: 2; margin-top: 4px; }
.auth-key-login { margin-top: 23px; border: 1px solid var(--auth-line); border-radius: 13px; overflow: hidden; }
.auth-key-login summary { display: flex; align-items: center; justify-content: space-between; padding: 15px; min-height: 54px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 550; color: var(--auth-accent); background: var(--auth-field); gap: 10px; }
.auth-key-login summary::-webkit-details-marker { display: none; }
.auth-key-login summary > span:first-child { display: inline-flex; gap: 9px; align-items: center; }
.auth-key-login .auth-key-icon { width: 18px; height: 18px; }
.auth-key-login-arrow { font-size: 24px; font-weight: 400; line-height: 1; }
.auth-key-login[open] .auth-key-login-arrow { transform: rotate(45deg); }
.auth-key-login .auth-form { padding: 17px 15px; }
.auth-key-input { display: block; direction: ltr; resize: vertical; min-height: 103px; font: 400 13px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; letter-spacing: .5px; text-align: left !important; }
.auth-key-input::placeholder { font: 400 10px/2 Vazirmatn, sans-serif; letter-spacing: 0; text-align: right; }
.auth-anonymous-switch { margin-top: 16px; }
.auth-anonymous-switch a { margin-inline-start: 3px; }
.auth-recovery-key { border: 1px solid #b5cbb6; border-radius: 17px; padding: 19px; background: var(--auth-soft); margin-bottom: 20px; }
.auth-recovery-key-heading { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.auth-recovery-key-heading > span { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--auth-accent); }
.auth-recovery-key-heading small { font-size: 9px; color: var(--auth-muted); }
.auth-recovery-key-heading .auth-key-icon { width: 18px; height: 18px; }
.auth-key-value { display: block; resize: none; width: 100%; border: 1px dashed #a5bda7; border-radius: 10px; background: var(--auth-surface); color: var(--auth-ink); padding: 15px; text-align: left; direction: ltr; min-height: 124px; font: 500 14px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1px; overflow-wrap: anywhere; user-select: all; outline-color: var(--auth-accent); }
.auth-copy-key { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 12px; padding: 10px 13px; border: 1px solid var(--auth-line); border-radius: 10px; background: var(--auth-surface); color: var(--auth-accent); font-size: 11px; font-weight: 550; }
.auth-copy-key .hp-svg { width: 17px; height: 17px; }
.auth-copy-key:disabled { cursor: default; opacity: .65; }
.auth-copy-key:hover:not(:disabled) { border-color: #a3bba5; }
.auth-key-copy-status { margin-top: 9px; font-size: 10px; line-height: 1.9; color: var(--auth-accent); }
.auth-key-copy-status[data-error="true"] { color: var(--auth-danger); }
.auth-key-warning { margin-bottom: 22px; }
.auth-key-warning > strong { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.auth-key-warning .hp-svg { width: 17px; height: 17px; color: var(--auth-gold); }
.auth-key-warning ul { margin: 10px 0 0; padding-inline-start: 19px; font-size: 10px; color: var(--auth-muted); line-height: 2.1; }
.auth-key-warning li + li { margin-top: 7px; }
.auth-key-acknowledgment { padding: 14px; border: 1px solid var(--auth-line); border-radius: 12px; color: var(--auth-ink); background: var(--auth-field); }
.auth-key-expiry { margin-top: 14px; font-size: 9px; color: var(--auth-muted); line-height: 2; }
.auth-key-expiry strong { display: block; font-weight: 550; }
.auth-key-expiry [data-key-lifetime] { display: block; font-variant-numeric: tabular-nums; }
.auth-key-expired-help { margin-top: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--auth-line); background: var(--auth-soft); font-size: 10px; line-height: 2; }
.auth-key-expired-help a { text-decoration: underline; text-underline-offset: 3px; }
.auth-link-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 23px; padding: 13px 15px; border: 1px solid var(--auth-line); border-radius: 12px; background: var(--auth-soft); color: var(--auth-muted); font-size: 10px; line-height: 2; }
.auth-link-notice .hp-svg { width: 17px; height: 17px; color: var(--auth-accent); margin-top: 2px; }
.auth-mobile-recipient { margin: 0 0 10px; font-size: 11px; }
.auth-mobile-recipient bdi { font-weight: 600; color: var(--auth-ink); }
.auth-aside--key .auth-recovery-orbit .auth-key-icon { width: 50px; height: 50px; transform: rotate(9deg); color: var(--auth-accent); }
[data-bs-theme="dark"] .auth-recovery-key { border-color: #526f56; }
[data-bs-theme="dark"] .auth-key-value { border-color: #607b60; }
@media (max-width: 480px) {
    .auth-key-intro { padding: 13px; gap: 9px; }
    .auth-key-login .auth-form { padding: 14px 11px; }
    .auth-key-login .auth-captcha { padding: 10px; }
    .auth-recovery-key { padding: 15px; }
    .auth-key-value { padding: 12px; font-size: 12px; letter-spacing: .3px; }
    .auth-key-input { font-size: 16px; }
}

.auth-link-cancel { display: inline-flex; justify-self: center; align-items: center; justify-content: center; min-height: 44px; border: 0; padding: 8px 12px; background: none; color: var(--auth-muted); font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }
.auth-link-cancel:hover { color: var(--auth-accent); }
