/* rb-login.css – صفحة الدخول (عربي، يمين لليسار). الأساس: البطاقة يمين، الفن يسار. الأشكال الثانية في rb-optlg-layout.css */
.lg-body { min-height: 100vh; overflow-x: hidden; }
.lg-body::before { display: none; }
.lg-top { position: fixed; z-index: 30; inset: 0 0 auto; height: 76px; padding: 0 clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.lg-top > * { pointer-events: auto; }
.lg-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(20, 19, 26, .85); backdrop-filter: blur(10px); color: #ddd; font: 500 14px var(--f-body); }
.lg-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-back:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }

.lg { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 1fr) 1.15fr; }
.lg-art { position: relative; overflow: hidden; background: #0C0B11; border-inline-start: 1px solid var(--line); order: 2; }
.lg-card { order: 1; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 110px clamp(20px, 5vw, 64px) 60px; max-width: 520px; width: 100%; margin: 0 auto; }
.lg-logo { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; }
.lg-card h1 { margin: 0; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.15; display: flex; flex-direction: column; align-items: center; }
.lg-sub { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); margin: 0 0 14px; }

/* زر Google – الأساس (الأشكال في rb-optlg-btn.css) */
.g-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 380px; height: 58px; padding: 0 24px; border-radius: 999px; background: #fff; color: #111; font: 600 16px/1 var(--f-body); border: 1px solid #fff; overflow: hidden; }
.g-btn:hover { background: #f1f1f4; }
.g-ico { width: 22px; height: 22px; flex: none; }

.lg-safe { display: inline-flex; align-items: center; gap: 8px; color: #b9b8c4; font-size: 13.5px; margin: 10px 0 0; }
.lg-safe svg { width: 17px; height: 17px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-terms { color: var(--dim); font-size: 12.5px; margin: 0; }
.lg-terms a { color: #c9c8d2; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.lg-terms a:hover { color: var(--lime); }

/* دخول هادي: البطاقة تطلع مرة وحدة */
.lg-card > * { opacity: 0; transform: translateY(12px); transition: opacity var(--t-4) var(--ease), transform var(--t-4) var(--ease); }
.is-in .lg-card > * { opacity: 1; transform: none; }
.is-in .lg-card > *:nth-child(2) { transition-delay: 80ms; } .is-in .lg-card > *:nth-child(3) { transition-delay: 160ms; }
.is-in .lg-card > *:nth-child(4) { transition-delay: 240ms; } .is-in .lg-card > *:nth-child(n+5) { transition-delay: 320ms; }

@media (max-width: 900px) {
    .lg { grid-template-columns: 1fr; }
    .lg-art { order: 0; min-height: 300px; border-inline-start: 0; border-bottom: 1px solid var(--line); }
    .lg-card { padding-top: 40px; }
    .lg-top .bar-logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lg-card > * { opacity: 1; transform: none; transition: none; } }

/* 12-01: رابط التبديل بين الدخول والتسجيل (عربي وإنجليزي) */
.lg-switch { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.lg-switch a { color: var(--lime); font-weight: 600; text-decoration: none; margin-inline-start: 4px; }
.lg-switch a:hover { text-decoration: underline; }
.lg-switch a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.lg-card.swap h1, .lg-card.swap .lg-sub { animation: lgSwap .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes lgSwap { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .lg-card.swap h1, .lg-card.swap .lg-sub { animation: none; } }

/* 12-01: شكل العنوان (lgwf) – الكلام نفسه، الشكل يتغير */
html[data-lgwf="2"] .lg-card h1 { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .25em; font-size: clamp(28px, 2.8vw, 40px); }
html[data-lgwf="2"] .lg-card h1 .w-light { font-weight: 800; }
html[lang="en"][data-lgwf="2"] .lg-card h1 .w-light { font-weight: 900; }
html[data-lgwf="3"] .lg-card h1 .lime { color: var(--pur); }
html[data-lgwf="4"] .lg-card h1 { font-size: clamp(40px, 4.4vw, 62px); }
html[data-lgwf="4"] .lg-card h1::before { content: attr(data-k); order: -1; align-self: center; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(203,242,116,.12); color: var(--lime); font: 600 12.5px var(--f-body); letter-spacing: .02em; }
html[lang="en"][data-lgwf="4"] .lg-card h1 { font-size: clamp(34px, 3.6vw, 52px); }
/* 12-01 (owner): بالعربي الشكل 4 بسطر واحد («سجّل دخولك» · «ابدأ مجاناً») */
html[lang="ar"][data-lgwf="4"] .lg-card h1 { flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: baseline; gap: .22em; white-space: nowrap; font-size: clamp(34px, 3.7vw, 54px); }
html[lang="ar"][data-lgwf="4"] .lg-card h1::before { position: absolute; top: -40px; left: 50%; translate: -50% 0; margin: 0; }
html[lang="ar"][data-lgwf="4"] .lg-card h1 { position: relative; margin-top: 40px; }
