/* ==========================================================================
   صفحات احراز هویت — /auth/login | /auth/register | /auth/forgot-password
   طراحی مشترک، موبایل‌فرست و هماهنگ با تم روشن/تاریک سایت
   ========================================================================== */

.au-page {
    --au-brand-1: #312e81;
    --au-brand-2: #4f46e5;
    --au-brand-3: #0ea5e9;
    --au-radius: 26px;
    position: relative;
    padding: 1.25rem 0 2.5rem;
    background:
        radial-gradient(820px 320px at 88% -10%, rgba(79, 70, 229, 0.13), transparent 65%),
        radial-gradient(700px 300px at 4% 0%, rgba(14, 165, 233, 0.11), transparent 60%),
        var(--app-bg, #f1f5f9);
}

.au-shell {
    width: min(1040px, calc(100% - 2rem));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--au-radius);
    overflow: hidden;
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, rgba(15, 23, 42, 0.08));
    box-shadow:
        0 40px 90px -70px rgba(15, 23, 42, 0.85),
        0 2px 10px rgba(15, 23, 42, 0.04);
}

/* ---------- ستون برند ---------- */
.au-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.35rem 1.15rem 1.4rem;
    color: #fff;
    background: linear-gradient(150deg, #312e81 0%, #4338ca 48%, #0e7490 100%);
}

.au-brand__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.au-brand__glow--1 {
    width: 300px;
    height: 300px;
    top: -120px;
    inset-inline-start: -90px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.55), transparent 65%);
}

.au-brand__glow--2 {
    width: 280px;
    height: 280px;
    bottom: -140px;
    inset-inline-end: -100px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.5), transparent 65%);
}

.au-brand__logo {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    width: fit-content;
}

.au-brand__mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.au-brand__names {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.au-brand__names strong {
    font-size: 0.95rem;
    font-weight: 900;
}

.au-brand__names small {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.74);
}

.au-brand__main {
    position: relative;
    z-index: 1;
}

.au-brand__title {
    margin: 0 0 0.45rem;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.5;
}

.au-brand__lead {
    margin: 0;
    max-width: 36ch;
    font-size: 0.8rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.84);
}

.au-brand__body {
    position: relative;
    z-index: 1;
}

/* فهرست مزیت‌ها */
.au-perks {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.au-perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.au-perks__ico {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.2);
}

.au-perks strong {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.7;
}

.au-perks small {
    display: block;
    font-size: 0.65rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
}

.au-brand__trust {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.6rem;
}

.au-brand__trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* راهنمای مرحله‌ای داخل پنل برند */
.au-guide {
    counter-reset: au-step;
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.au-guide li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.72rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
}

.au-guide li::before {
    counter-increment: au-step;
    content: counter(au-step);
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.63rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

/* ---------- ستون فرم ---------- */
.au-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem 1.1rem 1.6rem;
}

.au-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.au-panel__home {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--app-text-muted, #64748b);
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 9px;
    transition: color 0.15s ease, background 0.15s ease;
}

.au-panel__home:hover {
    color: var(--app-primary, #2563eb);
    background: var(--app-primary-light, rgba(37, 99, 235, 0.08));
}

.au-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.au-head {
    margin-bottom: 1.15rem;
}

.au-head__ico {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 0.7rem;
    border-radius: 15px;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, var(--au-brand-2), var(--au-brand-3));
    box-shadow: 0 14px 26px -16px rgba(79, 70, 229, 0.9);
}

.au-head__title {
    margin: 0 0 0.3rem;
    font-size: 1.32rem;
    font-weight: 900;
    line-height: 1.5;
    color: var(--app-text, #0f172a);
}

.au-head__sub {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.9;
    color: var(--app-text-muted, #64748b);
}

/* ---------- فیلدها ---------- */
.au-field {
    margin-bottom: 0.85rem;
}

.au-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.38rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--app-text, #0f172a);
}

.au-label small {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--app-text-muted, #64748b);
}

.au-control {
    position: relative;
    display: flex;
    align-items: center;
}

.au-control__ico {
    position: absolute;
    inset-inline-start: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.85rem;
    color: var(--app-text-muted, #64748b);
    pointer-events: none;
    transition: color 0.15s ease;
}

.au-control:focus-within .au-control__ico {
    color: var(--app-primary, #2563eb);
}

.au-input {
    width: 100%;
    height: 48px;
    padding-inline: 2.5rem;
    border-radius: 14px;
    border: 1.5px solid var(--app-border-strong, rgba(15, 23, 42, 0.15));
    background: var(--app-bg, #f1f5f9);
    color: var(--app-text, #0f172a);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.au-input::placeholder {
    color: var(--app-placeholder, #94a3b8);
    font-weight: 500;
}

.au-input:focus {
    outline: none;
    border-color: var(--app-primary, #2563eb);
    background: var(--app-surface, #fff);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.au-input.invalid,
.au-input.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.au-input--ltr {
    direction: ltr;
    text-align: left;
    letter-spacing: 0.04em;
}

.au-input--otp {
    padding-inline: 0.75rem;
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 1.05rem;
    font-weight: 800;
    text-indent: 0.5em;
}

.au-eye {
    position: absolute;
    inset-inline-end: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--app-text-muted, #64748b);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.au-eye:hover {
    background: var(--app-divider, rgba(15, 23, 42, 0.06));
    color: var(--app-text, #0f172a);
}

.au-hint {
    margin-top: 0.32rem;
    font-size: 0.67rem;
    line-height: 1.8;
    color: var(--app-text-muted, #64748b);
}

.au-hint--ok {
    color: #059669;
    font-weight: 700;
}

.au-err {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.67rem;
    font-weight: 700;
    color: #dc2626;
}

/* ---------- ردیف لینک‌ها ---------- */
.au-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.1rem 0 0.95rem;
}

.au-link {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--app-primary, #2563eb);
    text-decoration: none;
}

.au-link:hover {
    text-decoration: underline;
}

.au-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--app-primary, #2563eb);
    cursor: pointer;
}

.au-linkbtn:hover {
    text-decoration: underline;
}

.au-link--muted {
    color: var(--app-text-muted, #64748b);
    font-weight: 700;
}

/* ---------- دکمه‌ها ---------- */
.au-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 48px;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.au-btn:active {
    transform: translateY(1px);
}

.au-btn:focus-visible {
    outline: 2px solid var(--app-primary, #2563eb);
    outline-offset: 2px;
}

.au-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--au-brand-2), var(--au-brand-3));
    box-shadow: 0 16px 32px -18px rgba(79, 70, 229, 0.95);
}

.au-btn--primary:hover {
    color: #fff;
    box-shadow: 0 20px 38px -18px rgba(79, 70, 229, 1);
}

.au-btn--primary:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    box-shadow: none;
}

.au-btn--soft {
    color: var(--app-primary, #2563eb);
    background: var(--app-primary-light, rgba(37, 99, 235, 0.09));
    border-color: rgba(37, 99, 235, 0.2);
}

.au-btn--soft:hover {
    color: var(--app-primary, #2563eb);
    background: rgba(37, 99, 235, 0.15);
}

.au-btn--ghost {
    color: var(--app-text-secondary, #334155);
    background: var(--app-surface, #fff);
    border-color: var(--app-border-strong, rgba(15, 23, 42, 0.15));
}

.au-btn--ghost:hover {
    color: var(--app-primary, #2563eb);
    border-color: rgba(37, 99, 235, 0.4);
}

.au-btn--sm {
    min-height: 40px;
    font-size: 0.77rem;
    border-radius: 12px;
}

.au-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.05rem 0;
    font-size: 0.67rem;
    color: var(--app-text-muted, #64748b);
}

.au-divider::before,
.au-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--app-divider, rgba(15, 23, 42, 0.06));
}

.au-switch {
    text-align: center;
}

.au-switch p {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: var(--app-text-muted, #64748b);
}

.au-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1.05rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--app-divider, rgba(15, 23, 42, 0.06));
    font-size: 0.69rem;
    color: var(--app-text-muted, #64748b);
}

.au-help a {
    color: var(--app-primary, #2563eb);
    font-weight: 800;
    text-decoration: none;
}

.au-help a:hover {
    text-decoration: underline;
}

/* ---------- هشدارها ---------- */
.au-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.95rem;
    padding: 0.68rem 0.78rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.9;
}

.au-alert .oi {
    margin-top: 0.15rem;
    font-size: 0.85rem;
}

.au-alert--warn {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.au-alert--danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.au-alert--info {
    color: #075985;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.au-alert--success {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

/* ---------- مراحل (بازیابی رمز) ---------- */
.au-steps {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.au-step {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.69rem;
    font-weight: 800;
    color: var(--app-text-muted, #64748b);
    white-space: nowrap;
}

.au-step__num {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--app-border-strong, rgba(15, 23, 42, 0.15));
    background: var(--app-bg, #f1f5f9);
    font-size: 0.67rem;
    font-weight: 900;
    color: var(--app-text-muted, #64748b);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.au-step.is-active {
    color: var(--app-text, #0f172a);
}

.au-step.is-active .au-step__num {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--au-brand-2), var(--au-brand-3));
    box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.9);
}

.au-step.is-done .au-step__num {
    color: #fff;
    border-color: transparent;
    background: #10b981;
}

.au-step__line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--app-divider, rgba(15, 23, 42, 0.06));
    transition: background 0.2s ease;
}

.au-step__line.is-done {
    background: #10b981;
}

/* ---------- سنجش قدرت رمز ---------- */
.au-strength {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
}

.au-strength__bars {
    display: flex;
    gap: 3px;
    flex: 1;
}

.au-strength__bars span {
    height: 4px;
    flex: 1;
    border-radius: 99px;
    background: var(--app-divider, rgba(15, 23, 42, 0.08));
    transition: background 0.2s ease;
}

.au-strength__txt {
    min-width: 3.4rem;
    text-align: end;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--app-text-muted, #64748b);
}

.au-strength.s1 .au-strength__bars span:nth-child(1) {
    background: #ef4444;
}

.au-strength.s1 .au-strength__txt {
    color: #dc2626;
}

.au-strength.s2 .au-strength__bars span:nth-child(-n + 2) {
    background: #f59e0b;
}

.au-strength.s2 .au-strength__txt {
    color: #b45309;
}

.au-strength.s3 .au-strength__bars span {
    background: #10b981;
}

.au-strength.s3 .au-strength__txt {
    color: #059669;
}

/* ---------- ردیف کد تایید ---------- */
.au-otp {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
}

.au-otp .au-control {
    flex: 1 1 auto;
    min-width: 0;
}

.au-otp__btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding-inline: 0.9rem;
    border-radius: 14px;
    border: 1.5px solid rgba(37, 99, 235, 0.28);
    background: var(--app-primary-light, rgba(37, 99, 235, 0.08));
    color: var(--app-primary, #2563eb);
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.au-otp__btn:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.45);
}

.au-otp__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------- حالت موفقیت ---------- */
.au-success {
    text-align: center;
    padding: 0.25rem 0 0.1rem;
}

.au-success__ico {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    font-size: 1.55rem;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 18px 34px -18px rgba(16, 185, 129, 0.9);
}

.au-success h2 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--app-text, #0f172a);
}

.au-success p {
    margin: 0 0 1rem;
    font-size: 0.77rem;
    line-height: 1.95;
    color: var(--app-text-muted, #64748b);
}

/* ---------- راهنمای کنار فرم ---------- */
.au-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: var(--app-bg, #f1f5f9);
    border: 1px dashed var(--app-border-strong, rgba(15, 23, 42, 0.15));
    font-size: 0.68rem;
    line-height: 1.85;
    color: var(--app-text-muted, #64748b);
}

.au-note .oi {
    margin-top: 0.1rem;
    color: var(--app-primary, #2563eb);
}

.au-note a {
    color: var(--app-primary, #2563eb);
    font-weight: 800;
    text-decoration: none;
}

.au-note a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   دسکتاپ
   ========================================================================== */
@media (min-width: 992px) {
    .au-page {
        padding: 2rem 0 3rem;
    }

    .au-shell {
        grid-template-columns: 0.94fr 1.06fr;
        min-height: 560px;
    }

    .au-brand {
        padding: 2.2rem 2rem 2rem;
        gap: 1.1rem;
    }

    .au-brand__title {
        font-size: 1.45rem;
    }

    .au-brand__lead {
        font-size: 0.83rem;
    }

    .au-perks {
        margin-top: 1.15rem;
        gap: 0.5rem;
    }

    .au-perks li {
        padding: 0.58rem 0.65rem;
    }

    .au-panel {
        padding: 2.1rem 2.3rem;
    }
}

/* ==========================================================================
   موبایل — پنل برند فشرده و فرم تمام‌عرض
   ========================================================================== */
@media (max-width: 991.98px) {
    .au-page {
        padding: 0 0 1.6rem;
        background: var(--app-bg, #f1f5f9);
    }

    .au-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .au-brand {
        border-radius: 0;
        padding: 1.05rem 1rem 1.15rem;
    }

    .au-brand__lead,
    .au-brand__trust {
        display: none;
    }

    .au-brand__main {
        margin-top: 0.8rem;
    }

    .au-brand__title {
        font-size: 1.02rem;
        margin: 0;
    }

    .au-perks {
        display: flex;
        gap: 0.35rem;
        margin-top: 0.55rem;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
    }

    .au-perks::-webkit-scrollbar {
        display: none;
    }

    .au-perks li {
        flex: 0 0 auto;
        padding: 0.32rem 0.5rem;
        gap: 0.35rem;
        border-radius: 10px;
    }

    .au-perks__ico {
        width: 22px;
        height: 22px;
        border-radius: 7px;
        font-size: 0.62rem;
    }

    .au-perks strong {
        font-size: 0.66rem;
        line-height: 1.6;
        white-space: nowrap;
    }

    .au-perks small {
        display: none;
    }

    .au-guide {
        margin-top: 0.6rem;
        gap: 0.3rem;
    }

    .au-guide li {
        font-size: 0.67rem;
    }

    .au-panel {
        padding: 1.1rem 1rem 1.5rem;
    }

    /* جلوگیری از زوم خودکار iOS هنگام فوکوس روی فیلدها */
    .au-input {
        font-size: 16px;
    }

    .au-panel__bar {
        margin-bottom: 0.8rem;
    }

    .au-head__title {
        font-size: 1.22rem;
    }
}

@media (max-width: 575.98px) {
    .au-brand__names small {
        display: none;
    }

    .au-otp {
        gap: 0.35rem;
    }

    .au-otp__btn {
        padding-inline: 0.65rem;
        font-size: 0.68rem;
    }

    .au-step {
        font-size: 0.64rem;
        gap: 0.3rem;
    }

    .au-step__num {
        width: 22px;
        height: 22px;
        font-size: 0.62rem;
    }
}

/* ==========================================================================
   دارک مود
   ========================================================================== */
[data-theme="dark"] .au-page {
    background:
        radial-gradient(820px 320px at 88% -10%, rgba(99, 102, 241, 0.2), transparent 65%),
        radial-gradient(700px 300px at 4% 0%, rgba(14, 165, 233, 0.14), transparent 60%),
        var(--app-bg, #0f172a);
}

[data-theme="dark"] .au-shell {
    background: var(--app-surface, #1e293b);
    border-color: var(--app-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 40px 90px -70px rgba(0, 0, 0, 0.95);
}

[data-theme="dark"] .au-input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.13);
}

[data-theme="dark"] .au-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

[data-theme="dark"] .au-input.invalid,
[data-theme="dark"] .au-input.invalid:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.14);
}

[data-theme="dark"] .au-eye:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

[data-theme="dark"] .au-btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

[data-theme="dark"] .au-btn--ghost:hover {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .au-btn--soft {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.32);
    color: #93c5fd;
}

[data-theme="dark"] .au-btn--soft:hover {
    background: rgba(59, 130, 246, 0.24);
    color: #bfdbfe;
}

[data-theme="dark"] .au-panel__badge {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.32);
}

[data-theme="dark"] .au-alert--warn {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .au-alert--danger {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .au-alert--info {
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
}

[data-theme="dark"] .au-alert--success {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .au-otp__btn {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.32);
    color: #93c5fd;
}

[data-theme="dark"] .au-otp__btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.26);
    border-color: rgba(96, 165, 250, 0.5);
}

[data-theme="dark"] .au-note {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .au-note .oi {
    color: #93c5fd;
}

[data-theme="dark"] .au-panel__home:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #93c5fd;
}

[data-theme="dark"] .au-input::placeholder {
    color: #64748b;
}

/* ---------- کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
    .au-btn,
    .au-input,
    .au-eye,
    .au-panel__home,
    .au-otp__btn,
    .au-step__num,
    .au-step__line,
    .au-strength__bars span {
        transition: none !important;
    }
}
