﻿/* ===== Social Buttons (clean, RTL-friendly) ===== */

/* متغیرهای پایه برای سفارشی‌سازی سریع */
:root {
    --sb-radius: 14px;
    --sb-gap: .6rem;
    --sb-font-size: 1.06rem;
    --sb-shadow: 0 6px 16px rgba(0,0,0,.06);
    --sb-google-bg: #fff;
    --sb-google-border: #e5e7eb;
    --sb-google-hover: #f9fafb;
    --sb-google-text: #111;
    --sb-linkedin-bg: #0A66C2;
    --sb-linkedin-hover: #0C74E2;
    --sb-linkedin-text: #fff;
    --sb-facebook-bg: #1877F2;
    --sb-facebook-hover: #1a6de0;
    --sb-facebook-text: #fff;
    --sb-focus: rgba(11,107,203,.35);
}

/* پایه‌ی همه دکمه‌ها */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sb-gap);
    padding: 12px 16px;
    border-radius: var(--sb-radius);
    font-weight: 800;
    font-size: var(--sb-font-size);
    line-height: 1;
    border: 1px solid transparent;
    box-shadow: var(--sb-shadow);
    transition: transform .12s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    text-decoration: none; /* اگر <a> باشد */
}

    .social-btn .icon-wrap {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .social-btn svg {
        display: block
    }

    /* حالت‌های دسترسی */
    .social-btn:focus {
        outline: 2px solid var(--sb-focus);
        outline-offset: 2px;
    }

        .social-btn:focus:not(:focus-visible) {
            outline: 0;
        }

    .social-btn:active {
        transform: translateY(1px);
    }

    .social-btn[disabled], .social-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
    }

/* احترام به کاهش انیمیشن کاربر */
@media (prefers-reduced-motion: reduce) {
    .social-btn {
        transition: none;
    }
}

/* — Google — */
.btn-google {
    background: var(--sb-google-bg);
    border-color: var(--sb-google-border);
    color: var(--sb-google-text);
}

    .btn-google:hover {
        background: var(--sb-google-hover);
        border-color: #dfe3e8;
    }

/* — LinkedIn — */
.btn-linkedin {
    background: var(--sb-linkedin-bg);
    border-color: var(--sb-linkedin-bg);
    color: var(--sb-linkedin-text);
}

    .btn-linkedin:hover {
        background: var(--sb-linkedin-hover);
        border-color: var(--sb-linkedin-hover);
        color: #fff;
    }

/* — Facebook — */
.btn-facebook {
    background: var(--sb-facebook-bg);
    border-color: var(--sb-facebook-bg);
    color: var(--sb-facebook-text);
}

    .btn-facebook:hover {
        background: var(--sb-facebook-hover);
        border-color: var(--sb-facebook-hover);
        color: #fff;
    }

/* واریانت فشرده (اختیاری): <button class="social-btn btn-google sb-sm">… */
.sb-sm {
    padding: 10px 12px;
    font-size: .98rem;
    border-radius: 12px;
}

/* واریانت آیکن‌-چپ/راست برای سازگاری با RTL/LTR (پیش‌فرض وسط‌چین است) */
.sb-justify-start {
    justify-content: flex-start;
}

.sb-justify-end {
    justify-content: flex-end;
}

/* اگر خواستی آیکن داخل دایره نیمه‌شفاف باشد (کنتراست بیشتر روی زمینه‌های تیره) */
/* .btn-linkedin .icon-wrap, .btn-facebook .icon-wrap{ background:rgba(255,255,255,.14); border-radius:999px; } */

/* ===== Brand Panel ===== */
.brand-panel {
    background: linear-gradient(135deg, #EEF4FF 0%, #F8FAFF 35%, #FFFFFF 100%);
    border-radius: 24px;
    padding: 48px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(17, 24, 39, .06);
}

    .brand-panel::after {
        content: "";
        position: absolute;
        inset: -20% -20% auto auto;
        width: 360px;
        height: 360px;
        background: radial-gradient(closest-side, rgba(59,130,246,.12), transparent 65%);
        filter: blur(8px);
        pointer-events: none;
    }

.brand-lockup {
    max-width: 480px;
    margin-inline: auto;
}

.brand-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.brand-wordmark {
    font-weight: 900;
    font-size: clamp(28px, 3vw, 36px);
    color: #0B1B34;
    letter-spacing: -.5px;
}

.brand-tagline {
    color: #475569; /* slate-600 */
    font-size: 1.06rem;
}

.brand-divider {
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, #1D4ED8, #60A5FA);
    border-radius: 999px;
}

.brand-illustration .brand-illus-img {
    max-width: 380px;
    opacity: .95;
}

.brand-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #334155; /* slate-700 */
    font-weight: 600;
}

    .brand-bullets li {
        margin: .4rem 0;
        position: relative;
        padding-inline-start: 20px;
    }

        .brand-bullets li::before {
            content: "•";
            position: absolute;
            inset-inline-start: 0;
            color: #3B82F6;
        }

@media (max-width: 991.98px) {
    .brand-panel {
        padding: 36px 20px;
        border-radius: 18px;
    }

    .brand-logo {
        width: 84px;
        height: 84px;
    }

    .brand-illustration .brand-illus-img {
        max-width: 320px;
    }
}

/* هماهنگی کارت فرم (اگر خواستی) */
.login-card {
    border: 1px solid #eef2f7;
    background: #fff;
    backdrop-filter: saturate(130%) blur(2px);
    border-radius: 20px;
}

.caption {
    font-weight: 900;
    letter-spacing: -.3px;
}

.login-main .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.login-card {
    flex: 1 1 auto; /* کارت پرکننده ارتفاع ستون */
}

/* دکمه‌ی ورود مینیمال */
.btn-login-main {
    background: #2563eb; /* آبی تخت */
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px; /* کوچکتر شد */
    border: 1px solid #1f51d6;
    transition: background-color .15s ease, transform .05s ease;
    box-shadow: none; /* بدون سایه */
    line-height: 1.2;
}

    .btn-login-main:hover {
        background: #1d4ed8;
    }

    .btn-login-main:active {
        transform: translateY(1px);
    }

/* دکمه/لینک بازگشت خیلی ظریف (Ghost) */
.btn-ghost {
    background: transparent;
    color: #475569; /* slate-600 */
    border: 1px solid #e5e7eb; /* خط خیلی کم‌رنگ */
    border-radius: 10px;
    padding: 8px 12px; /* از ورود کوچکتر */
    font-weight: 600;
    line-height: 1.2;
}

    .btn-ghost:hover {
        background: #f8fafc;
    }

/* اندازه‌ها کلی کمی ظریف‌تر شوند */
.social-btn {
    padding: 10px 12px;
    font-size: .98rem;
    border-radius: 12px;
    box-shadow: none;
}

.caption {
    font-weight: 800;
    font-size: 1.05rem;
}
/* تیتر کارت کمی جمع‌وجور */
.login-card {
    border-radius: 14px;
}

/* بج لوگو در مرکز */
.brand-badge {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06);
    border: 1px solid rgba(2,6,23,.06);
}

.brand-badge-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* اگر قبلاً لگو گوشه‌ای داشتی، غیرفعال یا حذفش کن */
.brand-logo {
    display: none;
}
