/* style.css - login */

@import url('fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', 'Vazirmatn', Tahoma, sans-serif;
}

/* ============================================================
   :root = تم روشن (پیش‌فرض امن)
   [data-theme="dark"] = تم تاریک
   ============================================================ */
:root,
[data-theme="light"] {
    --bg: #eff6ff;
    --bg-glow-1: rgba(59, 130, 246, 0.2);
    --bg-glow-2: rgba(37, 99, 235, 0.15);
    --bg-glow-3: rgba(96, 165, 250, 0.1);
    --grid-line: rgba(59, 130, 246, 0.08);

    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(59, 130, 246, 0.2);

    --text: #0a1e3f;
    --text-light: #1a3d7c;
    --text-mute: #64748b;

    --input-bg: rgba(255, 255, 255, 0.7);
    --input-bg-focus: rgba(255, 255, 255, 0.95);
    --input-border: rgba(59, 130, 246, 0.25);

    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --error: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.1);
    --error-border: rgba(220, 38, 38, 0.3);

    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.1);
    --success-border: rgba(5, 150, 105, 0.3);
}

/* ========== تم تاریک (استاندارد و خنثی) ========== */
[data-theme="dark"] {
    --bg: #121212;
    --bg-glow-1: #1f2227;
    --bg-glow-2: #1f2227;
    --bg-glow-3: #1f2227;
    --grid-line: #1f2227;

    --card-bg: #1f2227;
    --card-border: rgba(255, 255, 255, 0.1);

    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-mute: #94a3b8;

    --input-bg: rgba(255, 255, 255, 0.06);
    --input-bg-focus: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.12);

    --primary: #3b82f6;
    --primary-dark: #2563eb;

    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.12);
    --error-border: rgba(248, 113, 113, 0.3);

    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --success-border: rgba(52, 211, 153, 0.3);
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 20%, var(--bg-glow-1), transparent 45%),
        radial-gradient(circle at 85% 80%, var(--bg-glow-2), transparent 45%),
        radial-gradient(circle at 50% 50%, var(--bg-glow-3), transparent 60%);
    padding: 20px 20px 80px;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background 0.3s, color 0.3s;
}

/* گرید پس‌زمینه */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 45px 45px;
    pointer-events: none;
    z-index: 0;
}

/* ========== رَپر اصلی ========== */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: auto;
}

/* تصویر پس‌زمینه‌ی تزئینی (قبلاً بدون استایل بود و عرض صفحه را به‌هم می‌ریخت) */
.auth-card-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.4;
}

.auth-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: blur(1px) saturate(1.05);
}

[data-theme="dark"] .auth-card-bg {
    opacity: 0.28;
}

/* تصویر تزئینی فقط در نمایشگرهای بزرگ (مثل طراحی قبلی) */
@media (max-width: 1023px) {
    .auth-card-bg {
        display: none;
    }
}

/* ========== لوگو بالای کارت (بدون باکس) ========== */
.brand-logo {
    width: 240px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    z-index: 2;
    position: relative;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

/* ========== کارت لاگین ========== */
.auth-card {
    position: relative;
    width: 100%;
    padding: 30px 30px 34px;
    border-radius: 22px;
    background: var(--card-bg);
    backdrop-filter: blur(24px) saturate(1.15);
    -webkit-backdrop-filter: blur(24px) saturate(1.15);
    border: 1px solid var(--card-border);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.25),
        0 2px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.3s, border-color 0.3s;
}

/* ========== برند ========== */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
    text-align: center;
}

.brand h1 {
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: color 0.3s;
}

.brand p {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.85;
    transition: color 0.3s;
}

/* ========== فرم ========== */
.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 12.5px;
    margin-bottom: 8px;
    font-weight: 500;
    transition: color 0.3s;
}

/* ردیف برچسب + لینک فراموشی */
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.label-row label {
    margin-bottom: 0;
}

.forgot-link {
    color: var(--text-light);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.forgot-link:hover {
    color: var(--text);
    text-decoration: underline;
}

/* ========== ورودی‌ها ========== */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .icon {
    position: absolute;
    right: 16px;
    width: 18px;
    height: 18px;
    stroke: var(--text-light);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
}

[dir="ltr"] .input-wrap .icon {
    right: auto;
    left: 16px;
}

.input-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 13px 46px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.25s ease;
    direction: ltr;
    text-align: left;
}

[dir="rtl"] .input-wrap input {
    text-align: right;
}

.input-wrap input::placeholder {
    color: var(--text-mute);
    opacity: 0.6;
}

.input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

[data-theme="dark"] .input-wrap input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* دکمه نمایش پسورد */
.toggle-pass {
    position: absolute;
    left: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

[dir="ltr"] .toggle-pass {
    left: auto;
    right: 14px;
}

.toggle-pass svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-mute);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}

/* ========== چک‌باکس ========== */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 18px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.3s;
}

.remember-row input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: var(--input-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.remember-row input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-row input:checked+.checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* ========== دکمه اصلی (ساده) ========== */
.btn-primary {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: filter 0.2s, box-shadow 0.2s, transform 0.06s;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* ========== هشدارها ========== */
.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
    line-height: 1.5;
    text-align: center;
}

.alert.error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error);
}

.alert.success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

/* ========== لینک ثبت‌نام بیرون کارت ========== */
.register-outside {
    margin-top: 32px;
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.register-outside a {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s;
}

.register-outside a:hover {
    color: var(--primary);
}

/* ========== نوار پایین صفحه ========== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0 0 14px;
    background: transparent;
    border: none;
    pointer-events: none;
}

.bottom-bar * {
    pointer-events: auto;
}

/* خط جداکننده — سفید در تم تاریک، تیره در تم روشن */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 24px 12px;
}

[data-theme="light"] .footer-divider {
    border-top-color: rgba(0, 0, 0, 0.15);
}

/* چیدمان داخلی: راست = کنترل‌ها، چپ = متن */
.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px;
    flex-wrap: nowrap;
}

/* سمت راست: زبان + تم */
.bottom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* سمت چپ: متن */
.bottom-center {
    color: var(--text-light);
    font-size: 12.5px;
    transition: color 0.3s;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* دکمه تغییر تم */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
    color: var(--text);
}

/* سلکت زبان */
.lang-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

[data-theme="light"] .lang-select {
    border-color: rgba(0, 0, 0, 0.15);
}

.lang-select:hover {
    color: var(--text);
}

.lang-select option {
    background: var(--bg);
    color: var(--text);
}

/* ========== واکنش‌گرا برای موبایل ========== */
@media (max-width: 480px) {
    .bottom-bar {
        padding: 0 0 10px;
    }

    .footer-divider {
        margin: 0 14px 10px;
    }

    .bottom-content {
        padding: 0 14px;
        gap: 8px;
    }

    .bottom-controls {
        gap: 6px;
    }

    .theme-toggle,
    .lang-select {
        padding: 4px 8px;
        font-size: 10.5px;
        border-radius: 6px;
    }

    .bottom-center {
        font-size: 9.5px;
        line-height: 1.3;
        white-space: normal;
        text-align: left;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 360px) {

    .theme-toggle,
    .lang-select {
        padding: 3px 6px;
        font-size: 10px;
    }

    .bottom-center {
        font-size: 9px;
    }
}

/* ========== واکنش‌گرا ========== */
@media (max-width: 480px) {
    body {
        padding: 20px 16px 160px;
    }

    .auth-card {
        padding: 28px 22px 32px;
        border-radius: 20px;
    }

    .brand h1 {
        font-size: 19px;
    }

    .brand-logo {
        width: 148px;
        height: 74px;
        margin-bottom: 12px;
    }

    .register-outside {
        font-size: 14px;
        margin-top: 26px;
    }

    .bottom-bar {
        padding: 12px 16px;
    }

    .bottom-controls {
        max-width: 100%;
    }
}

/* ========== دکمه خروج بالا راست ========== */
.exit-btn {
    position: absolute;
    top: -70px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

[dir="ltr"] .exit-btn {
    right: auto;
    left: 0;
}

.exit-btn svg {
    width: 16px;
    height: 16px;
}

.exit-btn:hover {
    color: var(--text);
    border-color: var(--text);
}

/* ========== تیک شرایط ========== */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 20px;
    cursor: pointer;
    user-select: none;
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========== کپچای عددی فارسی ========== */
.captcha-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.captcha-input-wrap {
    flex: 1;
    min-width: 0;
}

.captcha-input-wrap input {
    height: 58px;
    letter-spacing: 10px;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
    padding-inline: 44px;
}

[dir="rtl"] .captcha-input-wrap input {
    text-align: center;
}

.captcha-img-btn {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1.5px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.captcha-img-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.captcha-img-btn img {
    display: block;
    width: 148px;
    height: 58px;
    object-fit: cover;
    border-radius: 10px;
}

.captcha-refresh-ico {
    position: absolute;
    inset-inline-end: 6px;
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.18s, transform 0.18s;
    pointer-events: none;
}

.captcha-refresh-ico svg {
    width: 12px;
    height: 12px;
}

.captcha-img-btn:hover .captcha-refresh-ico,
.captcha-img-btn:focus-visible .captcha-refresh-ico {
    opacity: 1;
    transform: scale(1);
}

.captcha-img-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.captcha-hint {
    display: block;
    margin-top: 7px;
    color: var(--text-mute);
    font-size: 11.5px;
    line-height: 1.7;
}

[data-theme="dark"] .captcha-refresh-ico {
    background: rgba(15, 23, 42, 0.75);
    color: #93c5fd;
}

[data-theme="dark"] .captcha-img-btn {
    border-color: #334155;
    background: #0f172a;
}

/* ========== مراحل ثبت‌نام ========== */
.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 18px;
}

.reg-steps span {
    display: block;
    width: 30px;
    height: 4px;
    border-radius: 99px;
    background: var(--input-border);
    transition: background 0.25s;
}

.reg-steps span.done {
    background: var(--primary);
    opacity: 0.5;
}

.reg-steps span.active {
    background: var(--primary);
}

.reg-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding: 9px 12px;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-light);
    font-size: 12.5px;
    line-height: 1.6;
}

.reg-summary-dot {
    opacity: 0.45;
}

.reg-summary-back {
    margin-inline-start: auto;
    color: var(--primary);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.reg-summary-back:hover {
    text-decoration: underline;
}

.reg-back-row {
    margin-top: 14px;
    text-align: center;
}

.reg-back-link {
    color: var(--text-mute);
    font-size: 12.5px;
    text-decoration: none;
}

.reg-back-link:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .captcha-row {
        gap: 8px;
    }

    .captcha-img-btn img {
        width: 124px;
        height: 54px;
    }

    .captcha-input-wrap input {
        height: 54px;
        font-size: 17px;
        letter-spacing: 8px;
        padding-inline: 40px;
    }
}

.terms-row input {
    display: none;
}

.terms-row .checkmark {
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-row input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.terms-row input:checked+.checkmark::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

/* دکمه غیرفعال */
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary:disabled:active {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transform: none;
}

/* واکنش‌گرا */
@media (max-width: 480px) {
    .exit-btn {
        top: -60px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ============================================================
   NO TEXT SELECT / NO IMAGE DRAG
   ============================================================ */
body,
body * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body input,
body textarea,
body select,
body option,
body [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body img,
body svg,
body picture,
body canvas {
    -webkit-user-drag: none;
    user-drag: none;
}

body a,
body button,
body [role="button"] {
    -webkit-user-drag: none;
    user-drag: none;
}

/* ============================================================
   AUTH — POLISH & RESPONSIVE (login / register / forgot)
   ============================================================ */

/* نوار پایین: پس‌زمینه‌ی محو برای خوانایی روی تصویر */
.bottom-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 72%);
    opacity: 0.9;
}

.bottom-content {
    max-width: 760px;
    margin: 0 auto;
}

/* لینک فراموشی رمز */
.forgot-link {
    color: var(--primary);
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

/* موبایل */
@media (max-width: 480px) {
    body {
        padding: 12px 12px calc(58px + env(safe-area-inset-bottom));
    }

    .auth-wrapper {
        max-width: 100%;
    }

    .brand-logo {
        width: 128px;
        height: 62px;
        margin-bottom: 10px;
    }

    .auth-card {
        padding: 20px 16px 22px;
        border-radius: 18px;
    }

    .brand {
        margin-bottom: 16px;
    }

    .brand h1 {
        font-size: 18px;
    }

    .brand p {
        font-size: 12px;
        margin-top: 4px;
    }

    .form-group {
        margin-bottom: 11px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .input-wrap input {
        min-height: 46px;
        padding: 12px 42px;
        font-size: 14.5px;
    }

    .input-wrap .icon {
        right: 13px;
        width: 17px;
        height: 17px;
    }

    [dir="ltr"] .input-wrap .icon {
        left: 13px;
    }

    .toggle-pass {
        left: 11px;
    }

    [dir="ltr"] .toggle-pass {
        right: 11px;
    }

    .btn-primary {
        min-height: 46px;
        font-size: 14.5px;
    }

    .remember-row {
        margin: 10px 0 14px;
        font-size: 12.5px;
    }

    .register-outside {
        margin-top: 16px;
        font-size: 13.5px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 9px;
        margin-bottom: 12px;
    }

    .bottom-bar {
        padding: 0 0 calc(8px + env(safe-area-inset-bottom));
    }

    .footer-divider {
        margin: 0 12px 8px;
    }

    .bottom-content {
        padding: 0 12px;
        gap: 6px;
    }

    .bottom-center {
        font-size: 9.5px;
    }

    .theme-toggle,
    .lang-select {
        padding: 4px 8px;
        font-size: 10.5px;
        border-radius: 7px;
    }

    /* دکمه خروج همیشه در دسترس */
    .exit-btn {
        position: fixed;
        top: calc(10px + env(safe-area-inset-top));
        right: 10px;
        left: auto;
        z-index: 20;
        padding: 6px 10px;
        font-size: 11.5px;
        border-radius: 10px;
        background: var(--card-bg);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    [dir="ltr"] .exit-btn {
        right: auto;
        left: 10px;
    }
}

/* صفحه‌های کوتاه: کوچک‌نمایی تا بدون اسکرول جا شود */

/* دسکتاپ و تبلت */
@media (min-width: 481px) and (max-height: 940px) {
    .auth-wrapper {
        zoom: 0.94;
    }
}

@media (min-width: 481px) and (max-height: 880px) {
    .auth-wrapper {
        zoom: 0.88;
    }
}

@media (min-width: 481px) and (max-height: 820px) {
    .auth-wrapper {
        zoom: 0.82;
    }
}

@media (min-width: 481px) and (max-height: 760px) {
    .auth-wrapper {
        zoom: 0.76;
    }
}

/* موبایل */
@media (max-width: 480px) and (max-height: 800px) {
    .auth-wrapper {
        zoom: 0.96;
    }
}

@media (max-width: 480px) and (max-height: 740px) {
    .auth-wrapper {
        zoom: 0.9;
    }

    .brand-logo {
        width: 120px;
        height: 58px;
    }
}

@media (max-width: 480px) and (max-height: 690px) {
    .auth-wrapper {
        zoom: 0.84;
    }

    .auth-card {
        padding: 18px 14px 20px;
    }
}

@media (max-width: 480px) and (max-height: 660px) {
    .auth-wrapper {
        zoom: 0.8;
    }
}

@media (max-width: 480px) and (max-height: 620px) {
    .auth-wrapper {
        zoom: 0.7;
    }

    .brand-logo {
        width: 108px;
        height: 52px;
    }
}

@media (max-width: 480px) and (max-height: 560px) {
    .auth-wrapper {
        zoom: 0.64;
    }

    .brand-logo {
        display: none;
    }
}

