@font-face {
    font-family: AuthYekan;
    src: url('../fonts/woff2/IRANYekanXFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: AuthYekan;
    src: url('../fonts/woff2/IRANYekanXFaNum-Bold.woff2') format('woff2');
    font-weight: 600 900;
    font-display: swap;
}
.auth-page {
    --auth-bg: #fff;
    --auth-ink: #23332d;
    --auth-muted: #69736e;
    --auth-line: #dce4df;
    --auth-soft: #f4f7f4;
    --auth-green: #17634f;
    --auth-tint: #edf5ef;
    --auth-danger: #b43e36;
    --color-base: 23, 99, 79;
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-ink);
    font-family: AuthYekan, Tahoma, sans-serif;
    line-height: 1.8;
    direction: rtl;
    letter-spacing: 0;
}
.dark .auth-page {
    --auth-bg: #191f1c;
    --auth-ink: #eff4f0;
    --auth-muted: #acb9b0;
    --auth-line: #3e4c44;
    --auth-soft: #232d27;
    --auth-green: #a0d7bb;
    --auth-tint: #233d30;
    --auth-danger: #ffb4a9;
    --color-base: 79, 150, 113;
    color-scheme: dark;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; letter-spacing: 0; }
.auth-page * { font-family: inherit; }
.auth-page [x-cloak] { display: none !important; }
.auth-page a { text-decoration: none; }
.auth-page button { cursor: pointer; }
.auth-page :focus-visible { outline: 3px solid #b85744; outline-offset: 4px; }
.auth-page button:disabled { opacity: .55; cursor: not-allowed; }
.auth-layout { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
.auth-header { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 30px 42px; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--auth-ink); }
.auth-brand .auth-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.auth-brand strong { display: block; font-size: 19px; line-height: 1.65; overflow-wrap: anywhere; }
.auth-brand small { display: block; font-size: 10px; color: var(--auth-muted); }
.auth-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.auth-home-link { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--auth-muted); }
.auth-home-link svg { width: 16px; height: 16px; }
.auth-icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px; border: 1px solid var(--auth-line); border-radius: 6px; color: var(--auth-muted); background: var(--auth-bg); flex-shrink: 0; transition: background 160ms; }
.auth-icon-button:hover { background: var(--auth-soft); color: var(--auth-green); }
.auth-icon-button svg { width: 20px; height: 20px; }
.auth-content { grid-column: 1; display: flex; align-items: center; justify-content: center; padding: 36px 48px 54px; min-width: 0; }
.auth-form-container { width: 100%; max-width: 428px; }
.auth-page-signup .auth-form-container { max-width: 510px; }
.auth-page .auth-form-container > div { padding: 0; margin: 0; max-width: none; width: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.auth-heading { margin-bottom: 26px; }
.auth-heading-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: var(--auth-tint); color: var(--auth-green); margin-bottom: 22px; }
.auth-heading-icon svg { width: 25px; height: 25px; }
.auth-kicker { display: block; font-size: 12px; color: var(--auth-muted); margin-bottom: 7px; }
.auth-page .auth-heading h1 { font-size: 29px; font-weight: 700; line-height: 1.6; color: var(--auth-ink); margin: 0 0 9px; }
.auth-page .auth-heading p { font-size: 14px; line-height: 2; color: var(--auth-muted); margin: 0; }
.auth-progress { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0; margin: 0 0 27px; }
.auth-progress li { display: flex; align-items: center; gap: 9px; font-size: 12px; padding-bottom: 15px; border-bottom: 2px solid var(--auth-line); color: var(--auth-muted); }
.auth-progress li > span { width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--auth-line); display: grid; place-items: center; flex-shrink: 0; }
.auth-progress li > span svg { width: 15px; height: 15px; }
.auth-progress .is-current, .auth-progress .is-complete { color: var(--auth-green); border-bottom-color: var(--auth-green); }
.auth-progress .is-current > span, .auth-progress .is-complete > span { background: var(--auth-tint); border-color: var(--auth-green); }
.auth-field { margin: 0 0 19px; min-width: 0; }
.auth-page .auth-field label, .auth-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--auth-ink); margin-bottom: 8px; }
.auth-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.auth-field-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-page .auth-field-heading label { margin-bottom: 0; }
.auth-page .auth-input, .auth-page .auth-form-container input:not([type='checkbox']):not([type='radio']):not([type='hidden']), .auth-page .auth-form-container select, .auth-page .auth-form-container textarea {
    background: var(--auth-bg);
    color: var(--auth-ink);
    border: 1px solid var(--auth-line);
    border-radius: 6px;
    min-height: 49px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.7;
    padding: 11px 13px;
    transition: border-color 160ms, box-shadow 160ms;
}
.auth-page .auth-input { display: block; width: 100%; min-width: 0; }
.auth-page .auth-input::placeholder { color: #89948d; font-size: 13px; }
.auth-page .auth-input:focus { outline: 0; border-color: var(--auth-green); box-shadow: 0 0 0 3px var(--auth-tint); }
.auth-page .auth-input[aria-invalid='true'] { border-color: var(--auth-danger); }
.auth-page .auth-input:disabled { background: var(--auth-soft); color: var(--auth-muted); opacity: 1; cursor: not-allowed; }
.auth-page select.auth-input { padding-inline-end: 36px; background-position: left 12px center; }
.auth-page textarea.auth-input { min-height: 104px; resize: vertical; }
.auth-page .auth-field-error { color: var(--auth-danger); font-size: 12px; line-height: 1.9; margin-top: 7px; }
.auth-field-hint { font-size: 12px; color: var(--auth-muted); margin: -2px 0 10px; }
.auth-password { position: relative; }
.auth-page .auth-password .auth-input { padding-left: 48px !important; padding-right: 13px; }
.auth-password-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; position: absolute; left: 4px; top: 4px; border: 0; border-radius: 4px; background: transparent; color: var(--auth-muted); }
.auth-password-toggle:hover { color: var(--auth-green); background: var(--auth-soft); }
.auth-password-toggle svg { width: 20px; height: 20px; }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 18px; background: #17634f; color: #fff; border: 1px solid #17634f; border-radius: 6px; font-size: 14px; font-weight: 700; margin-top: 23px; transition: background 160ms; }
.auth-submit:hover { background: #104c3d; }
.auth-submit svg { width: 19px; height: 19px; flex-shrink: 0; }
.auth-secondary-button { min-height: 47px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--auth-line); border-radius: 6px; background: var(--auth-bg); color: var(--auth-green); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.auth-secondary-button:hover { background: var(--auth-tint); border-color: var(--auth-green); }
.auth-secondary-button svg { width: 18px; height: 18px; }
.auth-text-button { border: 0; background: none; color: var(--auth-green); font-size: 12px; font-weight: 600; padding-block: 7px; min-height: 32px; }
.auth-text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-form-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 21px 0 0; }
.auth-form-options > a { font-size: 12px; color: var(--auth-green); padding-block: 9px; }
.auth-check { display: flex; align-items: start; gap: 9px; font-size: 12px; line-height: 1.9; color: var(--auth-muted); cursor: pointer; }
.auth-page .auth-check input { width: 17px; height: 17px; min-height: 17px; border: 1px solid var(--auth-line); border-radius: 4px; color: #17634f; accent-color: #17634f; margin-top: 3px; flex-shrink: 0; }
.auth-check a { color: var(--auth-green); text-decoration: underline; text-underline-offset: 3px; }
.auth-consents { display: grid; gap: 12px; margin-block: 20px; }
.auth-consents.auth-check { display: flex; }
.auth-switch { padding-top: 24px; margin-top: 25px; border-top: 1px solid var(--auth-line); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; font-size: 13px; color: var(--auth-muted); }
.auth-switch a { display: inline-flex; align-items: center; gap: 7px; color: var(--auth-green); font-weight: 700; min-height: 40px; }
.auth-switch svg { width: 16px; height: 16px; }
.auth-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--auth-line); border-radius: 6px; background: var(--auth-soft); margin-bottom: 24px; }
.auth-identity > span { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.auth-identity .auth-icon-button { border: 0; background: transparent; }
.auth-methods { display: grid; gap: 12px; }
.auth-method { width: 100%; display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--auth-line); background: var(--auth-bg); border-radius: 8px; text-align: right; color: var(--auth-ink); transition: border-color 160ms, background 160ms; }
.auth-method:hover { border-color: var(--auth-green); background: var(--auth-soft); }
.auth-method-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: var(--auth-tint); color: var(--auth-green); flex-shrink: 0; }
.auth-method-icon svg { width: 23px; height: 23px; }
.auth-method-icon-neutral { background: var(--auth-soft); color: var(--auth-ink); }
.auth-method strong { display: block; font-size: 14px; }
.auth-method small { display: block; font-size: 11px; margin-top: 4px; color: var(--auth-muted); }
.auth-method-arrow { width: 17px; height: 17px; margin-inline-start: auto; flex-shrink: 0; color: var(--auth-muted); }
.auth-notice, .auth-page .auth-error-summary { font-size: 12px; padding: 14px 16px; border: 1px solid #e8bdb7; background: #fff3f1; border-radius: 6px; color: #a23a32; line-height: 1.9; margin-bottom: 21px; }
.auth-notice-success { background: var(--auth-tint); border-color: #b9d3c2; color: var(--auth-green); }
.auth-error-summary ul { margin: 8px 0 0; padding-inline-start: 16px; list-style: disc; }
.auth-phone-row { display: flex; align-items: start; gap: 9px; }
.auth-phone-input { position: relative; flex: 1; min-width: 0; }
.auth-page .auth-phone-input input { padding-inline-end: 67px; }
.auth-phone-prefix { position: absolute; inset-inline-start: 0; top: 1px; min-height: 47px; display: grid; place-items: center; width: 56px; border-inline-end: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 13px; }
.auth-verified { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--auth-green); }
.auth-verified svg { width: 17px; height: 17px; }
.auth-otp-section { padding-block: 17px 0; margin-block: 3px 20px; border-block: 1px solid var(--auth-line); }
.auth-otp-row { display: flex; gap: 10px; align-items: start; }
.auth-otp-row .auth-input { flex: 1; width: 0; font-size: 22px; text-align: center; }
.auth-resend { margin-top: 7px; }
.auth-branch-actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 26px; }
.auth-branch-actions .auth-submit { margin-top: 0; }
.auth-otp-form [dir='ltr']:has(> [data-otp-index]) { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.auth-page .auth-otp-form [data-otp-index] { width: 100%; min-width: 0; padding-inline: 3px; font-size: 22px; }
.auth-page .auth-otp-form .rounded-2xl, .auth-page .auth-otp-form .rounded-xl { border-radius: 6px; }
.auth-story { grid-column: 2; grid-row: 1 / 4; position: sticky; top: 0; height: 100dvh; min-height: 680px; display: flex; flex-direction: column; background: #203c33; overflow: hidden; color: #fff; }
.auth-story-image { display: block; width: 100%; height: 0; min-height: 280px; flex: 1; object-fit: cover; object-position: 15% 50%; }
.auth-story-copy { padding: 37px 45px 40px; }
.auth-story-eyebrow { font-size: 12px; color: #d6cbb7; }
.auth-story h2 { font-size: 28px; line-height: 1.8; font-weight: 700; margin: 13px 0; color: #fff; text-wrap: balance; }
.auth-story p { font-size: 13px; color: #d2e0d7; margin: 0; line-height: 2; }
.auth-story-features { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 24px; margin-top: 24px; border-top: 1px solid #526e5e; }
.auth-story-features span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #e5ece7; }
.auth-story-features svg { width: 20px; height: 20px; color: #e8c9bb; }
.auth-footer { grid-column: 1; display: flex; justify-content: space-between; gap: 20px; padding: 18px 42px 26px; font-size: 11px; color: var(--auth-muted); }
.auth-footer a { color: var(--auth-muted); }
@media (min-width: 1600px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .auth-content { padding-block: 64px; }
    .auth-story-copy { padding: 48px 70px; }
}
@media (max-width: 1199px) {
    .auth-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); }
    .auth-header { padding: 24px; }
    .auth-content { padding: 24px 32px 40px; }
    .auth-story-copy { padding: 30px; }
    .auth-story h2 { font-size: 24px; }
    .auth-home-link { font-size: 11px; }
    .auth-brand small { display: none; }
    .auth-footer { padding-inline: 28px; }
}
@media (max-width: 899px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr); }
    .auth-story { display: none; }
    .auth-header { padding: 23px 32px; border-bottom: 1px solid var(--auth-line); }
    .auth-brand small { display: block; }
    .auth-content { padding-block: 46px; }
    .auth-footer { border-top: 1px solid var(--auth-line); }
}
@media (max-width: 479px) {
    .auth-header { padding: 19px 20px; gap: 12px; }
    .auth-brand strong { font-size: 18px; }
    .auth-brand .auth-logo { width: 33px; height: 33px; }
    .auth-header-actions { gap: 10px; }
    .auth-home-link { font-size: 0; width: 36px; height: 42px; justify-content: center; }
    .auth-home-link svg { width: 21px; height: 21px; }
    .auth-content { padding: 34px 24px 40px; align-items: start; }
    .auth-page .auth-heading h1 { font-size: 25px; }
    .auth-heading-icon { margin-bottom: 17px; }
    .auth-page .auth-heading p { font-size: 13px; }
    .auth-field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .auth-page .auth-input { font-size: 16px; }
    .auth-progress { gap: 12px; }
    .auth-progress li { font-size: 11px; gap: 7px; }
    .auth-phone-row { flex-wrap: wrap; }
    .auth-phone-input { flex-basis: 100%; }
    .auth-phone-row > .auth-secondary-button { width: 100%; }
    .auth-form-options { gap: 8px; }
    .auth-form-options .auth-check, .auth-form-options > a { font-size: 11px; }
    .auth-branch-actions { grid-template-columns: minmax(0, 1fr); }
    .auth-branch-actions .auth-secondary-button { order: 2; }
    .auth-switch { font-size: 12px; }
    .auth-footer { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
