/* =============================================================================
   صفحه ورود — طراحی یکپارچه با تم نوین فارم
   ============================================================================= */

.login-page {
    --login-bg: linear-gradient(145deg, #0a0f1a 0%, #0f2347 40%, #1e3a8a 100%);
    --login-card-bg: #ffffff;
    --login-form-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --login-text: #0f172a;
    --login-text-muted: #64748b;
    --login-text-soft: #94a3b8;
    --login-accent: #2563eb;
    --login-accent-dark: #1d4ed8;
    --login-accent-rgb: 37, 99, 235;
    --login-welcome-bg: linear-gradient(165deg, #0f2347 0%, #1e3a8a 50%, #1e40af 100%);
    --login-gold: #fcd34d;
    --login-gold-soft: #fef3c7;
    --login-radius: 20px;
    --login-shadow: 0 16px 48px rgba(15, 23, 42, 0.24);
    --login-input-bg: #ffffff;
    min-height: 100vh;
    font-family: 'IRANSans', Tahoma, sans-serif;
}

.login-page,
.login-page .login-container {
    background: var(--login-bg) !important;
}

/* ─── پس‌زمینه متحرک ─────────────────────────────────────────────────────── */
.login-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    overflow: hidden;
    z-index: 1;
}

.login-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
    filter: blur(1px);
    animation: loginFloat 8s ease-in-out infinite;
}

.shape-1 { width: 140px; height: 140px; top: 8%; left: 6%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; top: 58%; right: 8%; animation-delay: 2s; }
.shape-3 { width: 90px; height: 90px; bottom: 12%; left: 18%; animation-delay: 4s; }
.shape-4 { width: 120px; height: 120px; top: 22%; right: 28%; animation-delay: 1.2s; }

@keyframes loginFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
    50% { transform: translateY(-18px) scale(1.04); opacity: 1; }
}

/* ─── کارت اصلی ───────────────────────────────────────────────────────────── */
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    border-radius: var(--login-radius) !important;
    background: var(--login-card-bg) !important;
    box-shadow: var(--login-shadow) !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.login-grid {
    min-height: 340px;
}

/* ─── بخش فرم ─────────────────────────────────────────────────────────────── */
.login-form-section {
    background: var(--login-form-bg) !important;
    padding: 1.35rem 1.5rem !important;
    display: flex;
    align-items: center;
}

.login-form-content {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.login-header {
    margin-bottom: 0.5rem;
    gap: 0.5rem !important;
    text-align: center;
}

.login-header-text {
    width: 100%;
    max-width: 320px;
}

.login-logo {
    width: 58px !important;
    height: 58px !important;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8) !important;
    box-shadow: 0 8px 22px rgba(var(--login-accent-rgb), 0.32);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.login-form-title {
    color: var(--login-text) !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    letter-spacing: -0.01em;
    text-align: center;
}

.login-form-subtitle {
    color: var(--login-text-muted) !important;
    font-size: 0.8rem !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    text-align: center;
}

.login-form-fields {
    gap: 0.35rem !important;
}

.login-page .login-form-section .mud-input-outlined .mud-input-outlined-border {
    border-color: #e2e8f0 !important;
    border-radius: 12px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-page .login-form-section .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: var(--login-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--login-accent-rgb), 0.15);
}

.login-page .login-form-section .mud-input-label {
    color: var(--login-text-muted) !important;
    font-size: 0.875rem !important;
}

.login-page .login-form-section .mud-input-root input,
.login-page .login-form-section .mud-input-slot {
    color: var(--login-text) !important;
    font-size: 0.95rem !important;
}

.login-field .mud-input-root input {
    text-align: right !important;
}

.login-remember-label {
    color: var(--login-text-muted) !important;
    font-size: 0.875rem !important;
}

.login-submit-btn {
    margin-top: 0.25rem;
    border-radius: 10px !important;
    min-height: 44px !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.login-submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--login-accent-rgb), 0.45) !important;
}

.login-alert-wrap {
    direction: rtl;
    text-align: right;
}

.login-page .login-form-section .mud-alert {
    border-radius: 12px !important;
    font-size: 0.875rem !important;
}

.partner-logos {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    opacity: 0.88;
}

.partner-logos .mud-image {
    filter: grayscale(12%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.partner-logos .mud-image:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* ─── بخش خوش‌آمد ─────────────────────────────────────────────────────────── */
.login-page .welcome-section {
    background: var(--login-welcome-bg) !important;
    padding: 1.35rem 1.25rem !important;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.22), transparent 50%);
    pointer-events: none;
}

.welcome-section::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* همهٔ متن‌های پنل آبی — سفید، بدون اسکرول */
.welcome-section .mud-text,
.welcome-section .mud-typography,
.welcome-section .welcome-title,
.welcome-section .welcome-subtitle,
.welcome-section .welcome-description,
.welcome-section .welcome-version,
.welcome-section .welcome-version strong,
.welcome-section .welcome-link,
.welcome-section .welcome-link strong,
.welcome-section .feature-item .mud-text {
    color: #ffffff !important;
}

.welcome-image {
    width: 72px !important;
    height: 72px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.welcome-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.welcome-brand-block {
    margin-top: 0.35rem;
}

.welcome-title {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-top: 0.45rem !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.welcome-buyer-chip {
    margin: 0.25rem 0 0.1rem !important;
    max-width: 100%;
    height: auto !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    font-size: 0.75rem !important;
}

.welcome-subtitle {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin-top: 0.1rem !important;
    opacity: 0.92;
}

.welcome-divider {
    width: 40px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent) !important;
    margin: 0.45rem auto !important;
    opacity: 1 !important;
}

.welcome-features-heading {
    margin-top: 0.4rem !important;
    opacity: 0.85;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-align: start;
    width: 100%;
}

.welcome-features-block {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    margin-top: 0.35rem;
    text-align: start;
    direction: inherit;
}

.feature-item--ai {
    background: rgba(252, 211, 77, 0.14) !important;
    border-color: rgba(252, 211, 77, 0.32) !important;
}

.welcome-description {
    font-size: 0.78rem !important;
    letter-spacing: 0.02em;
    font-weight: 400 !important;
    opacity: 0.95;
}

.welcome-version {
    font-size: 0.75rem !important;
    margin-top: 0.15rem !important;
}

.welcome-link,
.welcome-link strong {
    font-size: 0.8rem !important;
    text-decoration: none !important;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.welcome-link:hover,
.welcome-link:hover strong {
    opacity: 1;
}

.features-list {
    margin-top: 0.35rem;
    width: 100%;
    max-width: none;
    gap: 0.22rem !important;
    overflow: visible;
    align-items: stretch !important;
}

.feature-item {
    padding: 0.26rem 0.48rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
    width: 100%;
    direction: inherit;
    text-align: start;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.feature-item-icon {
    flex-shrink: 0;
    margin-top: 0.12rem;
}

.feature-item-text,
.feature-item .mud-text {
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    text-align: start !important;
    flex: 1;
    line-height: 1.5 !important;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.login-page[dir="rtl"] .welcome-features-block,
.login-page[dir="rtl"] .feature-item,
.login-page[dir="rtl"] .feature-item-text {
    text-align: right;
}

.login-page[dir="ltr"] .welcome-features-block,
.login-page[dir="ltr"] .feature-item,
.login-page[dir="ltr"] .feature-item-text {
    text-align: left;
}

.login-page[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
}

.login-page[dir="ltr"] .feature-item {
    flex-direction: row;
}

.feature-item--highlight {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.features-list .mud-icon.mud-success-text {
    color: #86efac !important;
}

.features-list .mud-icon.mud-warning-text {
    color: var(--login-gold) !important;
}

/* ─── ریسپانسیو ─────────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
    .login-card { max-width: 780px; }
    .login-form-section,
    .welcome-section { padding: 1.5rem 1.75rem !important; }
}

@media (max-width: 991px) {
    .login-container {
        align-items: flex-end;
        padding: 1rem 0.75rem max(0.75rem, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .login-card {
        margin-top: 0;
        max-width: 440px;
    }

    .login-grid {
        min-height: auto;
    }

    .login-form-section {
        order: 2;
        padding: 1rem 1.1rem !important;
    }

    .welcome-section {
        order: 1;
        padding: 0.85rem 1rem !important;
    }

    .welcome-image {
        width: 56px !important;
        height: 56px !important;
    }

    .welcome-title { font-size: 0.95rem !important; }
    .welcome-subtitle { font-size: 0.76rem !important; }

    .features-list,
    .welcome-features-heading,
    .welcome-features-block {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .login-page {
        min-height: 100dvh;
        min-height: 100vh;
    }

    .login-container {
        position: fixed;
        inset: 0;
        padding:
            max(0.75rem, env(safe-area-inset-top))
            max(0.5rem, env(safe-area-inset-right))
            env(safe-area-inset-bottom)
            max(0.5rem, env(safe-area-inset-left));
        align-items: flex-end;
        justify-content: center;
        /* Keep vertical scroll when keyboard / short viewports shrink the sheet */
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y pinch-zoom;
    }

    .login-background .shape {
        opacity: 0.55;
    }

    .shape-1 { width: 90px; height: 90px; top: 4%; left: 4%; }
    .shape-2 { width: 120px; height: 120px; top: 12%; right: 6%; }
    .shape-3 { width: 64px; height: 64px; bottom: auto; top: 8%; left: 42%; }
    .shape-4 { display: none; }

    .login-card {
        max-width: 100%;
        width: 100%;
        max-height: min(88dvh, 88vh);
        border-radius: 22px 22px 0 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: 0 -12px 48px rgba(15, 23, 42, 0.28) !important;
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .login-card::before {
        content: '';
        display: block;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.55);
        margin: 0.65rem auto 0;
        flex-shrink: 0;
    }

    .login-grid {
        min-height: 0;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scroll-snap-type: y mandatory;
    }

    .welcome-section,
    .login-form-section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* برند بالای کارت — نوار فشرده */
    .login-form-section {
        order: 2 !important;
        padding: 1rem 1.1rem 1.15rem !important;
        position: relative;
    }

    .welcome-section {
        order: 1 !important;
        padding: 0.85rem 1rem !important;
    }

    .welcome-content {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.7rem !important;
        text-align: start;
    }

    .welcome-image {
        width: 52px !important;
        height: 52px !important;
        flex-shrink: 0;
    }

    .welcome-brand-block {
        margin-top: 0 !important;
        align-items: flex-start !important;
        flex: 1;
        min-width: 0;
    }

    .welcome-title {
        font-size: 1rem !important;
        margin-top: 0 !important;
        line-height: 1.35 !important;
        text-align: start;
    }

    .welcome-subtitle {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        opacity: 0.92;
        text-align: start;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .welcome-divider,
    .welcome-version,
    .welcome-link,
    .features-list,
    .welcome-features-heading,
    .welcome-features-block {
        display: none !important;
    }

    .login-form-content {
        max-width: 100%;
    }

    .login-header.mud-stack {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.65rem !important;
        margin-bottom: 0.25rem !important;
        padding-inline-end: 4.75rem;
        text-align: start;
    }

    .login-header-text.mud-stack {
        align-items: flex-start !important;
        flex: 1;
        min-width: 0;
    }

    .login-logo {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0;
    }

    .login-form-title {
        font-size: 0.88rem !important;
        text-align: start !important;
        line-height: 1.45 !important;
    }

    .login-form-subtitle {
        font-size: 0.74rem !important;
        text-align: start !important;
        line-height: 1.45 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .login-lang-row {
        position: absolute;
        top: 0.85rem;
        inset-inline-end: 1rem;
        margin: 0;
        z-index: 2;
    }

    .login-form-fields {
        gap: 0.5rem !important;
        margin-top: 0.15rem;
    }

    .login-page .login-form-section .mud-input-root,
    .login-page .login-form-section .mud-input-control-input-container {
        min-height: 44px;
    }

    .login-page .login-form-section .mud-input-root input,
    .login-page .login-form-section .mud-input-slot {
        font-size: 1rem !important;
    }

    .login-submit-btn {
        min-height: 46px !important;
        font-size: 0.92rem !important;
        margin-top: 0.35rem;
    }

    .login-page .login-form-section .mud-checkbox-root {
        min-height: 44px;
        padding-inline: 2px;
    }

    .partner-logos {
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        gap: 1.25rem !important;
    }

    .partner-logos .mud-image {
        max-width: 72px !important;
        max-height: 48px !important;
        width: auto !important;
        height: auto !important;
    }

    .partner-logos .mud-image[src*="Ross308Logo"] {
        max-height: 72px !important;
        max-width: 52px !important;
    }
}

@media (max-width: 380px) {
    .login-form-section {
        padding-inline: 0.9rem !important;
    }

    .login-lang-row {
        inset-inline-end: 0.75rem;
    }

    .login-header.mud-stack {
        padding-inline-end: 5.5rem;
    }

    .welcome-subtitle,
    .login-form-subtitle {
        -webkit-line-clamp: 1;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .login-container {
        overflow-y: auto;
        align-items: flex-start;
        padding: 0.75rem;
    }

    .login-grid { min-height: auto; }
    .welcome-image { width: 64px !important; height: 64px !important; }
    .features-list { display: none !important; }
}

/* =============================================================================
   مستقل از تم تاریک/روشن اپ — همیشه ظاهر روشن در بخش فرم
   ============================================================================= */
html[data-theme="dark"] .login-page,
html[data-theme="light"] .login-page,
.mud-theme-dark .login-page {
    color-scheme: light;
}

html[data-theme="dark"] .login-page .login-form-section,
html[data-theme="dark"] .login-page .login-card,
html[data-theme="dark"] .login-page .login-form-section .mud-paper,
.mud-theme-dark .login-page .login-form-section,
.mud-theme-dark .login-page .login-card,
.mud-theme-dark .login-page .login-form-section .mud-paper {
    --theme-surface: #ffffff;
    --theme-background: #f8fafc;
    --theme-text-primary: #0f172a;
    --theme-text-secondary: #64748b;
    --mud-palette-surface: #ffffff;
    --mud-palette-background: #ffffff;
    --mud-palette-text-primary: #0f172a;
    --mud-palette-text-secondary: #64748b;
    --mud-palette-text-disabled: #94a3b8;
    --mud-palette-action-default: #64748b;
    --mud-palette-lines-default: #e2e8f0;
}

html[data-theme="dark"] .login-page .login-form-section .mud-input-control,
html[data-theme="dark"] .login-page .login-form-section .mud-input-control-input-container,
html[data-theme="dark"] .login-page .login-form-section .mud-input-outlined-input,
html[data-theme="dark"] .login-page .login-form-section .mud-input-root,
html[data-theme="dark"] .login-page .login-form-section .mud-input-slot,
html[data-theme="dark"] .login-page .login-form-section .mud-text-field,
html[data-theme="dark"] .login-page .login-form-section .mud-textfield,
html[data-theme="dark"] .login-page .login-form-section .mud-checkbox,
html[data-theme="dark"] .login-page .login-form-section .mud-checkbox-root,
.mud-theme-dark .login-page .login-form-section .mud-input-control,
.mud-theme-dark .login-page .login-form-section .mud-input-control-input-container,
.mud-theme-dark .login-page .login-form-section .mud-input-outlined-input,
.mud-theme-dark .login-page .login-form-section .mud-input-root,
.mud-theme-dark .login-page .login-form-section .mud-input-slot,
.mud-theme-dark .login-page .login-form-section .mud-text-field,
.mud-theme-dark .login-page .login-form-section .mud-textfield,
.mud-theme-dark .login-page .login-form-section .mud-checkbox,
.mud-theme-dark .login-page .login-form-section .mud-checkbox-root {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="dark"] .login-page .login-form-section .mud-input-root input,
html[data-theme="dark"] .login-page .login-form-section .mud-input-slot input,
.mud-theme-dark .login-page .login-form-section .mud-input-root input,
.mud-theme-dark .login-page .login-form-section .mud-input-slot input {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .login-page .login-form-section .mud-input-label,
html[data-theme="dark"] .login-page .login-form-section .mud-input-label-inputcontrol,
.mud-theme-dark .login-page .login-form-section .mud-input-label,
.mud-theme-dark .login-page .login-form-section .mud-input-label-inputcontrol {
    color: #64748b !important;
}

html[data-theme="dark"] .login-page .login-form-section .login-form-title,
html[data-theme="dark"] .login-page .login-form-section .login-form-title strong,
html[data-theme="dark"] .login-page .login-form-section .login-form-subtitle,
html[data-theme="dark"] .login-page .login-form-section .login-remember-label,
html[data-theme="dark"] .login-page .login-form-section .mud-checkbox .mud-typography,
html[data-theme="dark"] .login-page .login-form-section .mud-typography,
.mud-theme-dark .login-page .login-form-section .login-form-title,
.mud-theme-dark .login-page .login-form-section .login-form-title strong,
.mud-theme-dark .login-page .login-form-section .login-form-subtitle,
.mud-theme-dark .login-page .login-form-section .login-remember-label,
.mud-theme-dark .login-page .login-form-section .mud-checkbox .mud-typography,
.mud-theme-dark .login-page .login-form-section .mud-typography {
    color: #0f172a !important;
}

html[data-theme="dark"] .login-page .login-form-section .login-form-subtitle,
html[data-theme="dark"] .login-page .login-form-section .login-remember-label,
.mud-theme-dark .login-page .login-form-section .login-form-subtitle,
.mud-theme-dark .login-page .login-form-section .login-remember-label {
    color: #64748b !important;
}

html[data-theme="dark"] .login-page .login-form-section .mud-input-outlined .mud-input-outlined-border,
.mud-theme-dark .login-page .login-form-section .mud-input-outlined .mud-input-outlined-border {
    border-color: #e2e8f0 !important;
}

html[data-theme="dark"] .login-page .login-form-section .mud-input-outlined.mud-input-focused .mud-input-outlined-border,
.mud-theme-dark .login-page .login-form-section .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #2563eb !important;
}

html[data-theme="dark"] .login-page .login-card,
.mud-theme-dark .login-page .login-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

html[data-theme="dark"] .login-page .login-form-section,
.mud-theme-dark .login-page .login-form-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.login-lang-row {
    display: flex;
    justify-content: center;
    margin: 0.35rem 0 0.75rem;
}

/* زبان — نمایش FA/EN در موبایل روی صفحه ورود */
@media (max-width: 575px) {
    .login-page .lang-switcher-short {
        display: inline;
    }

    .login-page .lang-switcher-full {
        display: none;
    }

    .login-page .lang-switcher .mud-button-root {
        min-width: 44px !important;
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
    }
}

/* زبان — برچسب کوتاه FA/EN در موبایل */
.login-page .lang-switcher-short {
    display: none;
}

.login-page .lang-switcher-full {
    display: inline;
}

.login-page .lang-switcher .mud-button-root {
    min-height: 40px;
    font-size: 0.85rem !important;
}
