﻿:root {
    --bg: #f3f4fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #3b3cf1; /* قريب من الصورة */
    --primary2: #2f32ff;
    --shadow: 0 18px 55px rgba(15,23,42,.10);
    --radius: 22px;
}

* {
    box-sizing: border-box
}

body.ur-auth-body {
    margin: 0;
    font-family: "Cairo", "Tajawal", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    background: radial-gradient(1000px 600px at 20% 10%, rgba(59,60,241,.12), transparent 60%), radial-gradient(900px 500px at 80% 80%, rgba(59,60,241,.10), transparent 60%), var(--bg);
    color: var(--text);
}

.ur-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

/* الكارد الكبير مثل الصورة */
.auth-card {
    width: min(1180px, 100%);
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(229,231,235,.75);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 16px;
    backdrop-filter: blur(10px);
}

.auth-card-inner {
    background: var(--card);
    border: 1px solid rgba(229,231,235,.85);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
}

/* العمود الأيسر (الفورم) */
.auth-left {
    padding: 34px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59,60,241,.25), rgba(59,60,241,.08));
    border: 1px solid rgba(59,60,241,.25);
    color: var(--primary);
}

.brand-name {
    font-size: 18px
}

.welcome {
    margin-top: 18px;
}

    .welcome h1 {
        font-size: 44px;
        letter-spacing: -.5px;
        margin: 0 0 10px 0;
        font-weight: 900;
    }

    .welcome p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
    }

.form-block {
    margin-top: 22px;
    max-width: 460px
}

.field-label {
    font-size: 12px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 700;
}

.ur-input {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(59,60,241,.0);
    transition: .18s ease;
}

    .ur-input:focus {
        border-color: rgba(59,60,241,.55);
        box-shadow: 0 0 0 4px rgba(59,60,241,.12);
    }

.pass-wrap {
    position: relative;
}

.pass-toggle {
    position: absolute;
    left: 10px; /* RTL */
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
}

.row-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

    .link:hover {
        text-decoration: underline;
    }

.btn-main {
    margin-top: 14px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    box-shadow: 0 14px 28px rgba(59,60,241,.30);
}

    .btn-main:hover {
        filter: brightness(.98);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
    color: var(--muted);
    font-size: 12px;
}

    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

.alt-row {
    display: flex;
    gap: 10px;
}

.alt-btn {
    flex: 1;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    color: #111827;
}

    .alt-btn:hover {
        background: #f9fafb;
    }

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 18px;
    padding-top: 8px;
}

/* العمود الأيمن (اللوحة الزرقاء) */
.auth-right {
    position: relative;
    background: linear-gradient(135deg, #2f32ff, #3b3cf1);
    padding: 34px;
    color: #fff;
    overflow: hidden;
}

    /* زخرفة خلفية مثل الصورة */
    .auth-right::before {
        content: "";
        position: absolute;
        inset: -120px -120px auto auto;
        width: 520px;
        height: 520px;
        background: rgba(255,255,255,.10);
        border-radius: 50%;
        filter: blur(0);
    }

    .auth-right::after {
        content: "";
        position: absolute;
        inset: auto auto -140px -140px;
        width: 520px;
        height: 520px;
        background: rgba(255,255,255,.08);
        border-radius: 50%;
    }

.right-title {
    position: relative;
    z-index: 2;
    margin-top: 80px;
    max-width: 420px;
}

    .right-title h2 {
        font-size: 38px;
        margin: 0 0 12px 0;
        font-weight: 900;
        line-height: 1.2;
    }

    .right-title p {
        margin: 0;
        opacity: .88;
        font-size: 14px;
        line-height: 1.7;
    }

/* كارد الصورة/الموك */
.mock-wrap {
    position: relative;
    z-index: 2;
    margin-top: 26px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    padding: 14px;
}

.mock-img {
    width: 100%;
    border-radius: 14px;
    display: block;
    background: #fff;
}

@media (max-width: 992px) {
    .auth-card-inner {
        grid-template-columns: 1fr;
    }

    .auth-right {
        order: -1;
        min-height: 360px;
    }

    .right-title {
        margin-top: 18px;
    }
}
