/* ══════════════════════════════════════════════════════════════════════
   Zenora Auth — تصميم صفحة الدخول  |  Login / Auth Design
   • مبني على نفس هوية لوحة التحكم (zenora-ui.css) — البنفسجي #6f42c1
   • RTL / LTR من ملف واحد عبر الخصائص المنطقية
   • متجاوب بالكامل + يحترم prefers-reduced-motion
   ══════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────── 1) المتغيّرات ─────────────────────────── */

/* 2026-09-24: أُعيدت مزامنة اللوحة مع zenora-ui.css.
   كان الملفّ يقول «مطابقة» وهو على #685787 — بنفسجيٍّ هُجر مرّتين منذ ذلك
   (#634790 ثم #6f42c1). والأسطح كانت رماديّاً **دافئاً** (#e7e4e1 / #f8f7f5)
   بينما الداخل انتقل إلى أبيضَ بارد (#e8ebef / #fcfcfe). فكان أوّل ما يراه
   المستفيد من المنصّة لوحةَ ألوانٍ لا تشبه ما يدخل إليه.

   والتعليق الكاذب أخطر من غيابه: من يقرأ «مطابقة لـzenora-ui» لا يُعيد
   الفحص. فأُبقيت القيم مكتوبةً صراحةً — لا var() عبر ملفّين — لأن صفحة
   الدخول لا تُحمّل zenora-ui.css أصلاً، ووُضع تاريخُ المزامنة. */
:root {
    /* الهوية — منسوخةٌ من zenora-ui.css (2026-09-24) */
    --a-primary:      #6f42c1;
    --a-primary-400:  #7e57c6;
    --a-primary-600:  #5f37a8;
    --a-primary-700:  #4f2d8c;
    --a-primary-soft: #f2edfb;
    /* التدرّج مسطَّحٌ كما في --zn-grad: الداخل تخلّى عن التدرّج على الأسطح
       الممتلئة، ولونٌ واحد هنا يعني زرّاً يبدو كأزرار الداخل تماماً. */
    --a-grad:         linear-gradient(135deg, #6f42c1 0%, #6f42c1 100%);

    /* النصوص والأسطح */
    --a-ink:     #272d38;
    --a-ink-2:   #4e5868;
    --a-muted:   #687384;
    --a-faint:   #737e8e;
    --a-border:  #e8ebef;
    --a-field:   #d5dae2;
    --a-surface: #ffffff;
    --a-soft:    #fcfcfe;

    /* الحالات — مطابقة للداخل */
    --a-danger:  #ef4444;
    --a-danger-soft: #fdecec;
    --a-success: #17b26a;

    /* الهيرو الداكن — بنفسجيٌّ داكن لا نيليّ: كان #0d0f2b أزرقَ صريحاً */
    --a-hero-bg: #17122a;

    --a-ring:    rgba(111, 66, 193, .12);
    --a-radius:  14px;
    --a-radius-lg: 20px;

    --a-font:     'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --a-font-head:'Cairo', 'Tajawal', sans-serif;
    --a-font-brand:'Sora', 'Cairo', sans-serif;
}

/* ─────────────────────────── 2) الأساس ─────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
    font-family: var(--a-font);
    color: var(--a-ink);
    background: var(--a-hero-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--a-primary); color: #fff; }

:focus-visible {
    outline: 2px solid var(--a-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ══════════════════════════════════════════════════════════════════
   3) اللوحة اليمنى/اليسرى — الهيرو (العرض التسويقي)
   ══════════════════════════════════════════════════════════════════ */
.auth-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 54px 58px;
    color: #fff;
    background:
        radial-gradient(1100px 700px at 82% 8%,  rgba(126, 87, 198, .34) 0%, transparent 60%),
        radial-gradient(900px 600px at 6% 96%,   rgba(178, 150, 232, .16) 0%, transparent 58%),
        linear-gradient(160deg, #17122a 0%, #1e1738 45%, #2b1d4d 100%);
}

/* شبكة خفيفة في الخلفية */
.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 25%, transparent 78%);
}

/* حبيبات ناعمة تمنع تشريط التدرّجات */
.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .30;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* الشفق المتحرّك */
.aurora {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    mix-blend-mode: screen;
    will-change: transform;
}
.aurora.a1 { width: 480px; height: 480px; inset-block-start: -120px; inset-inline-end: -110px;
             background: radial-gradient(circle, #7e57c6 0%, transparent 68%); animation: auroraA 18s ease-in-out infinite; }
.aurora.a2 { width: 420px; height: 420px; inset-block-end: -140px; inset-inline-start: -120px;
             background: radial-gradient(circle, #2dd4bf 0%, transparent 68%); opacity: .38; animation: auroraB 22s ease-in-out infinite; }
.aurora.a3 { width: 360px; height: 360px; inset-block-start: 42%; inset-inline-start: 46%;
             background: radial-gradient(circle, #f472b6 0%, transparent 70%); opacity: .26; animation: auroraC 26s ease-in-out infinite; }

@keyframes auroraA { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-42px, 52px, 0) scale(1.14); } }
@keyframes auroraB { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(56px, -40px, 0) scale(1.10); } }
@keyframes auroraC { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-60px, -34px, 0) scale(1.20); } }

/* شارة أعلى الهيرو */
.hero-badge {
    position: absolute;
    inset-block-start: 28px;
    inset-inline-end: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e5dcf8;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .55);
    animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
    70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* شعار الهيرو */
.hero-brand { display: flex; align-items: center; gap: 13px; }
.hero-mark {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-family: var(--a-font-brand);
    font-weight: 800; font-size: 21px; color: #fff;
    background: var(--a-grad);
    box-shadow: 0 10px 26px rgba(126, 87, 198, .45);
}
.hero-brand b {
    font-family: var(--a-font-brand);
    font-weight: 800; font-size: 20px; letter-spacing: .4px;
}

.hero-title {
    font-family: var(--a-font-head);
    font-weight: 800;
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.42;
    letter-spacing: -.4px;
    max-width: 15ch;
}
.hero-title .hl {
    background: linear-gradient(120deg, #c4b0ec 0%, #7dd3fc 45%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.95;
    color: #c9bfdf;
}

/* ── بطاقة المعاينة الزجاجية ── */
.hero-preview {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    border-radius: var(--a-radius-lg);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(5, 6, 25, .40);
}
.hp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hp-head .t { font-size: 12.5px; color: #c9bfdf; font-weight: 600; }
.hp-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
    color: #6ee7b7; background: rgba(110, 231, 183, .12);
    border: 1px solid rgba(110, 231, 183, .22);
    direction: ltr;
}
.hp-value {
    margin-top: 6px;
    font-family: var(--a-font-brand);
    font-weight: 800; font-size: 30px; letter-spacing: .4px;
    direction: ltr; unicode-bidi: isolate;
    display: flex; align-items: baseline; gap: 6px;
}
.hp-value small { font-size: 14px; font-weight: 600; color: #a99cc4; }

.hp-bars {
    margin-top: 18px;
    height: 96px;
    display: flex; align-items: flex-end; gap: 9px;
}
.hp-bars i {
    flex: 1;
    display: block;
    height: var(--h, 40%);
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, rgba(196, 176, 236, .95), rgba(126, 87, 198, .45));
    transform-origin: bottom;
    animation: barGrow .85s cubic-bezier(.2, .8, .25, 1) backwards;
}
.hp-bars i.on {
    background: linear-gradient(180deg, #a5f3d0, #34d399);
    box-shadow: 0 6px 18px rgba(52, 211, 153, .35);
}
@keyframes barGrow { from { transform: scaleY(.05); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.hp-foot {
    position: relative; /* مرساة البطاقة العائمة أعلاه */
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.hp-stat .k { font-size: 11px; color: #a99cc4; font-weight: 600; }
.hp-stat .v {
    margin-top: 3px; font-size: 15px; font-weight: 800; color: #fff;
    font-family: var(--a-font-brand); direction: ltr; unicode-bidi: isolate;
}

/* بطاقة عائمة فوق صف الإحصاءات — مرساتها .hp-foot كي لا تغطّي أي نص */
.hero-toast {
    position: absolute;
    inset-block-end: calc(100% + 10px);
    inset-inline-end: -58px;
    display: flex; align-items: center; gap: 10px;
    padding: 11px 15px;
    border-radius: 14px;
    background: rgba(23, 18, 42, .82);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(4, 5, 22, .5);
    animation: floaty 6.5s ease-in-out infinite;
}
.hero-toast .ic {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(52, 211, 153, .16);
    color: #6ee7b7; font-size: 16px;
}
.hero-toast .tx b { display: block; font-size: 12.5px; font-weight: 700; color: #fff; }
.hero-toast .tx span { display: block; font-size: 11px; color: #a99cc4; margin-top: 1px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── شريط المزايا المتحرّك ── */
.hero-ticker {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    animation: tickerX 32s linear infinite;
}
.hero-ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* في RTL يبدأ الشريط من الحافة اليمنى، فالنسخة المكرّرة تقع خارج الشاشة يساراً.
   لذلك نُزيح موجباً (لا reverse) وإلّا بدأت الدورة الأولى بمساحة فارغة. */
[dir="rtl"] .ticker-track { animation-name: tickerXRtl; }
@keyframes tickerXRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

.t-pill {
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
    padding: 9px 15px;
    border-radius: 11px;
    font-size: 13px; font-weight: 500;
    color: #e9e1fa;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}
.t-pill i { font-size: 15px; color: #c4b0ec; }

/* ══════════════════════════════════════════════════════════════════
   4) لوحة النموذج
   ══════════════════════════════════════════════════════════════════ */
.auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 32px;
    background: var(--a-surface);
    background-image:
        radial-gradient(620px 360px at 100% 0%, rgba(126, 87, 198, .07) 0%, transparent 62%),
        radial-gradient(520px 320px at 0% 100%, rgba(45, 212, 191, .06) 0%, transparent 60%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

/* ظهور متدرّج للعناصر */
.rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) backwards; }
.rise:nth-child(1) { animation-delay: .04s; }
.rise:nth-child(2) { animation-delay: .10s; }
.rise:nth-child(3) { animation-delay: .16s; }
.rise:nth-child(4) { animation-delay: .22s; }
.rise:nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* شريط علوي: الشعار + مبدّل اللغة */
.panel-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 30px;
}
.panel-brand { display: flex; align-items: center; gap: 11px; }
.panel-mark {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
    font-family: var(--a-font-brand); font-weight: 800; font-size: 19px; color: #fff;
    background: var(--a-grad);
    box-shadow: 0 8px 20px rgba(111, 66, 193, .30);
}
.panel-brand b {
    display: block; font-family: var(--a-font-brand);
    font-weight: 800; font-size: 17px; color: var(--a-ink); letter-spacing: .3px;
}
.panel-brand span { display: block; font-size: 11.5px; color: var(--a-muted); margin-top: 1px; }

/* مبدّل اللغة (مقسّم) */
.lang-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 11px;
    background: var(--a-soft);
    border: 1px solid var(--a-border);
}
.lang-seg a {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px; font-weight: 700;
    color: var(--a-muted);
    text-decoration: none;
    transition: .16s ease;
}
.lang-seg a:hover { color: var(--a-ink); }
.lang-seg a.active {
    background: var(--a-surface);
    color: var(--a-primary);
    box-shadow: 0 1px 3px rgba(24, 28, 55, .10);
}

/* العناوين */
.auth-title {
    font-family: var(--a-font-head);
    font-weight: 800; font-size: 28px; letter-spacing: -.3px;
}
.auth-sub {
    margin-top: 8px; margin-bottom: 24px;
    font-size: 14px; color: var(--a-muted); line-height: 1.75;
}

/* تنبيه الخطأ */
[hidden] { display: none !important; }

.auth-alert {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 13.5px; line-height: 1.6;
    color: #b42318;
    background: var(--a-danger-soft);
    border: 1px solid #f6bcbc;
    animation: shake .42s cubic-bezier(.36, .07, .19, .97);
}
.auth-alert i { font-size: 17px; flex-shrink: 0; margin-top: 1px; }

/* نجاح — نفس الهيكل بألوان مطمئنة وبلا اهتزاز: shake لغةُ خطأ لا لغةُ تأكيد. */
.auth-alert.is-ok {
    color: #05603a;
    background: #ecfdf3;
    border-color: #a6f4c5;
    animation: none;
}
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* ── الحقول (تسمية عائمة) ── */
.fld {
    position: relative;
    height: 60px;
    margin-bottom: 14px;
    border: 1.5px solid var(--a-field);
    border-radius: var(--a-radius);
    background: var(--a-surface);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.fld:hover { border-color: #bcc3ce; }
.fld:focus-within {
    border-color: var(--a-primary);
    box-shadow: 0 0 0 4px var(--a-ring);
}
.fld.is-error { border-color: var(--a-danger); }
.fld.is-error:focus-within { box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); }

.fld > .fi {
    position: absolute;
    inset-inline-start: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: var(--a-faint);
    transition: color .18s ease;
    pointer-events: none;
}
.fld:focus-within > .fi { color: var(--a-primary); }
.fld.is-error > .fi { color: var(--a-danger); }

.fld input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0; outline: 0;
    background: transparent;
    border-radius: var(--a-radius);
    padding-inline-start: 48px;
    padding-inline-end: 50px;
    padding-top: 18px;
    font-family: inherit;
    font-size: 15px; font-weight: 600;
    color: var(--a-ink);
}
.fld input::placeholder { color: transparent; }
.fld input:-webkit-autofill,
.fld input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--a-ink);
    -webkit-box-shadow: 0 0 0 60px var(--a-surface) inset;
    transition: background-color 9999s;
}

.fld label {
    position: absolute;
    inset-inline-start: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14.5px; font-weight: 500;
    color: var(--a-faint);
    pointer-events: none;
    transition: top .18s cubic-bezier(.2, .7, .2, 1), font-size .18s, color .18s, transform .18s;
}
.fld input:focus + label,
.fld input:not(:placeholder-shown) + label {
    top: 14px;
    transform: none;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .2px;
    color: var(--a-primary);
}
.fld.is-error input:not(:placeholder-shown) + label,
.fld.is-error input:focus + label { color: var(--a-danger); }

.fld .eye {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border: 0; border-radius: 9px;
    background: transparent;
    color: var(--a-faint);
    font-size: 18px;
    cursor: pointer;
    transition: .16s ease;
}
.fld .eye:hover { color: var(--a-primary); background: var(--a-primary-soft); }

/* تنبيه Caps Lock */
.caps-hint {
    display: none;
    align-items: center; gap: 6px;
    margin: -6px 0 12px;
    font-size: 12px; font-weight: 600;
    color: #b45309;
}
.caps-hint.show { display: flex; }

/* صف التذكّر + نسيت كلمة المرور */
.fld-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    margin: 6px 0 20px;
}
.remember {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 500; color: var(--a-ink-2);
    cursor: pointer; user-select: none;
}
.remember input {
    width: 17px; height: 17px;
    accent-color: var(--a-primary);
    cursor: pointer;
}
.link-soft {
    font-size: 13.5px; font-weight: 700;
    color: var(--a-primary);
    text-decoration: none;
}
.link-soft:hover { color: var(--a-primary-700); text-decoration: underline; }

/* ── زر الدخول ── */
.btn-auth {
    position: relative;
    overflow: hidden;
    width: 100%; height: 54px;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    border: 0; border-radius: var(--a-radius);
    font-family: var(--a-font-head);
    font-size: 16px; font-weight: 700; color: #fff;
    background: var(--a-grad);
    box-shadow: 0 10px 24px rgba(111, 66, 193, .28);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn-auth::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -60%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start .55s ease;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(111, 66, 193, .36); }
.btn-auth:hover::after { inset-inline-start: 120%; }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { cursor: not-allowed; filter: saturate(.75); transform: none; }

.btn-auth .spin {
    display: none;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-auth.is-loading .spin { display: block; }
.btn-auth.is-loading .lbl,
.btn-auth.is-loading > i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* الفاصل */
.auth-divider {
    display: flex; align-items: center; gap: 14px;
    margin: 22px 0;
    font-size: 12.5px; font-weight: 600; color: var(--a-faint);
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--a-border); }

/* التذييل */
.auth-foot {
    margin-top: 26px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 11.5px; color: var(--a-faint);
    text-align: center;
}
.auth-foot i { font-size: 13px; color: var(--a-success); }

/* شريط العلامة للجوال (يظهر بدل الهيرو) */
.mobile-brand { display: none; }

/* ══════════════════════════════════════════════════════════════════
   5) التجاوب
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
    .auth-hero { padding: 44px 40px; gap: 22px; }
    .hero-preview { max-width: 380px; }
}

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    body { background: var(--a-surface); }

    .mobile-brand {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 16px 20px;
        color: #fff;
        background:
            radial-gradient(420px 200px at 90% 0%, rgba(126, 87, 198, .40) 0%, transparent 65%),
            linear-gradient(135deg, #1e1738 0%, #3a2568 100%);
    }
    .mobile-brand .mb-brand { display: flex; align-items: center; gap: 10px; }
    .mobile-brand .mb-mark {
        width: 38px; height: 38px; border-radius: 12px;
        display: grid; place-items: center;
        font-family: var(--a-font-brand); font-weight: 800; font-size: 17px;
        background: var(--a-grad);
        box-shadow: 0 8px 18px rgba(126, 87, 198, .40);
    }
    .mobile-brand b { font-family: var(--a-font-brand); font-weight: 800; font-size: 16px; letter-spacing: .3px; }
    .mobile-brand span { display: block; font-size: 11px; color: #c9bfdf; margin-top: 1px; font-family: var(--a-font); font-weight: 500; }
    .mobile-brand .mb-badge {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 6px 11px; border-radius: 999px;
        font-size: 11px; font-weight: 600; color: #e5dcf8;
        background: rgba(255, 255, 255, .10);
        border: 1px solid rgba(255, 255, 255, .16);
    }

    .auth-panel { align-items: flex-start; padding: 34px 24px 40px; }
    .panel-brand { display: none; }
    .panel-top { justify-content: flex-end; margin-bottom: 22px; }
}

@media (max-width: 575.98px) {
    .auth-panel { padding: 26px 18px 34px; }
    .auth-title { font-size: 24px; }
    .auth-sub { font-size: 13px; margin-bottom: 20px; }
    /* 16px تمنع تكبير iOS التلقائي عند التركيز */
    .fld input { font-size: 16px; }
    .fld { height: 58px; }
    .btn-auth { height: 52px; font-size: 15px; }
    .mobile-brand { padding: 14px 16px; }
    .mobile-brand .mb-badge { display: none; }
}

@media (max-width: 359.98px) {
    .auth-panel { padding: 22px 12px 30px; }
    .fld-row { flex-wrap: wrap; gap: 8px; }
}

/* الشاشات القصيرة — امنع القصّ العمودي */
@media (max-height: 760px) and (min-width: 992px) {
    .auth-hero { gap: 18px; padding: 34px 46px; justify-content: center; }
    .hero-preview { max-width: 360px; padding: 16px; }
    .hp-bars { height: 74px; }
    .auth-panel { align-items: flex-start; padding-block: 28px; overflow-y: auto; }
}

/* ══════════════════════════════════════════════════════════════════
   6) تفضيلات الحركة المخفّضة
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hp-bars i { transform: none; opacity: 1; }
}

/* A quieter welcome, keeping the existing form and responsive layout.
   2026-09-30: كانت هذه الكتلة — لأنها الأخيرة — تُلغي مزامنة 09-24 بصمت:
   هيرو رماديّ دافئ (#302b3d) ولوحة عاجيّة (#fcfbf9) وأعمدة بالبنفسجيّ
   المهجور. صارت على درجات الداخل نفسها. */
.auth-hero {
    background: radial-gradient(ellipse at 15% 90%, rgba(126, 87, 198, .20), transparent 60%),
                linear-gradient(145deg, #1e1738, #17122a);
}
.auth-hero::before { opacity: .35; }
.auth-hero::after { opacity: .12; }
.auth-hero .aurora { opacity: .08; animation: none; }
.auth-panel { background: var(--a-soft); }
.auth-title, .hero-title { font-weight: 700; }
.auth-title { line-height: 1.6; }
.hero-title .hl { background: none; color: #c4b0ec; }
.hero-desc { color: #c9bfdf; }
.hero-preview { background: rgba(255,255,255,.045); box-shadow: 0 16px 40px rgba(12,9,24,.18); }
.hero-brand .mark, .panel-mark { box-shadow: 0 4px 12px rgba(30,27,57,.14); }
.btn-auth { background: var(--a-primary); box-shadow: 0 4px 12px rgba(30,27,57,.12); }
.btn-auth:hover { background: var(--a-primary-600); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,27,57,.16); }
.btn-auth::after { display: none; }
.hero-badge .dot { animation: none; }
.hp-bars i { background: linear-gradient(0deg, #7e57c6, #c4b0ec); }
.hp-bars i.on { background: var(--a-success); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .btn-auth:hover { transform: none; } }