/* ============================================================================
   RayanHub — استایل صفحه ورود (به انتهای wwwroot/css/app.css اضافه شود)
   ============================================================================ */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(31,78,121,.12), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(46,84,150,.12), transparent 40%),
        var(--mud-palette-background);
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 860px;
    min-height: 500px;
    overflow: hidden;
    border-radius: 16px !important;
}

/* ستون برند با گرادیان رنگ تم */
.login-brand {
    background: linear-gradient(135deg,
        var(--mud-palette-primary),
        var(--mud-palette-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}
.login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.12), transparent 50%);
}
.brand-content { position: relative; z-index: 1; text-align: center; }

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: start;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    opacity: .95;
}

/* ستون فرم */
.login-form {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ════════════════ v43.0 — بهبود ظاهر و موبایل ════════════════ */

/* حرکت بسیار آرام در پس‌زمینه — صفحه «زنده» به نظر می‌رسد بدون اینکه
   حواس‌پرتی بسازد. با تنظیم سیستمی «کاهش حرکت» خودکار خاموش می‌شود. */
.login-wrap {
    background-size: 140% 140%;
    animation: rh-login-drift 22s ease-in-out infinite alternate;
}

@keyframes rh-login-drift {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .login-wrap { animation: none; }
}

.login-card {
    box-shadow: 0 24px 60px -18px rgba(16,24,40,.35) !important;
}

/* نوار برند فشرده — فقط روی موبایل دیده می‌شود */
.login-brand-mobile { display: none; }

/* ════════════════════════════════════════════════════════════════
   موبایل: تک‌ستونه

   v43.0 — پیش‌تر ستون برند روی گوشی کاملاً مخفی می‌شد، یعنی صفحه‌ی
   ورود هیچ نشانی از هویت سامانه نداشت — فقط یک فرم خالی. حالا
   به‌جای حذف کامل، به یک نوار رنگی کوتاه بالای فرم تبدیل می‌شود.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .login-wrap {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        min-height: 100dvh;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* ستون برند به نوار بالایی تبدیل می‌شود */
    .login-brand {
        display: flex;
        min-height: 150px;
        padding: 24px 20px;
        border-radius: 0;
    }

        /* فهرست ویژگی‌ها روی گوشی جا نمی‌شود و فرم را پایین می‌برد */
        .login-brand .brand-features { display: none; }

    .brand-content .mud-typography-h4,
    .brand-content .mud-typography-h3 {
        font-size: 1.4rem;
    }

    .login-form {
        padding: 28px 20px calc(28px + env(safe-area-inset-bottom)) 20px;
        justify-content: flex-start;
    }

    /* هدف لمسی راحت */
    .login-form .mud-button-root { min-height: 46px; }
}

/* صفحه‌های خیلی کوتاه (گوشی افقی) — نوار برند فضا نگیرد */
@media (max-width: 700px) and (max-height: 520px) {
    .login-brand { display: none; }

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

    .login-wrap { align-items: center; padding: 12px; }
}
