/* ══════════════════════════════════════════════════════════════
   BioZone — صفحتا الدخول والتسجيل (تخطيط مقسوم نصفين)

   الفكرة: النموذج على اليمين حيث تقع العين أولاً في صفحة عربية،
   والجهة الأخرى لوحة تعريفية تُطمئن الزائر إلى ما يسجّل فيه.
   على الهاتف تختفي اللوحة التعريفية كلياً — من فتح الصفحة على
   هاتفه يريد أن يدخل، لا أن يقرأ إعلاناً.
   ══════════════════════════════════════════════════════════════ */

body.authpage{
  min-height:100vh;
  display:block;
  background:var(--bg);
}

.split{
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);
  min-height:100vh;
  width:100%;
}

/* min-width:0 على عنصري الشبكة ضرورية: الافتراضي min-width:auto يمنع
   العمود من النزول تحت عرض محتواه، فيتمدّد التخطيط خارج شاشة الهاتف. */
.brandside,.formside{min-width:0}

/* ── الجهة التعريفية ── */
.brandside{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:56px 52px;
  background:
    radial-gradient(1100px 620px at 88% 8%,  rgba(139,92,246,.30), transparent 62%),
    radial-gradient(900px  560px at 6%  92%, rgba(99,102,241,.26), transparent 60%),
    linear-gradient(160deg,#141a2c 0%,#0e1322 55%,#0b0f19 100%);
  border-inline-start:1px solid var(--border);
}

/* كرات ضوئية تتنفّس ببطء — حركة خفيفة تكفي لكسر جمود الخلفية */
.brandside::before,
.brandside::after{
  content:'';
  position:absolute;
  border-radius:50%;
  filter:blur(66px);
  pointer-events:none;
}
.brandside::before{
  width:380px;height:380px;top:-90px;inset-inline-end:-110px;
  background:rgba(139,92,246,.34);
  animation:bzFloat 15s ease-in-out infinite;
}
.brandside::after{
  width:320px;height:320px;bottom:-100px;inset-inline-start:-90px;
  background:rgba(56,189,248,.20);
  animation:bzFloat 19s ease-in-out infinite reverse;
}
@keyframes bzFloat{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%    {transform:translate3d(0,34px,0) scale(1.09)}
}

.brandside__in{position:relative;z-index:1;max-width:460px;margin-inline:auto;width:100%}

/* direction:ltr ضرورية: بلا‌ها يقلب المتصفح ترتيب «⚡ BioZone» في صفحة
   RTL فيصير «Zone Bio ⚡». الاسم لاتيني فيُكتب باتجاهه. */
.brandside__logo{
  display:inline-flex;align-items:center;gap:9px;direction:ltr;
  font-size:23px;font-weight:800;color:var(--text);
  text-decoration:none;margin-bottom:30px;
}
.brandside__logo:hover{text-decoration:none}
.brandside__logo b{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;background-clip:text;color:transparent;font-weight:800;
}

.brandside__title{
  font-size:33px;line-height:1.42;font-weight:800;letter-spacing:-.4px;margin-bottom:14px;
}
.brandside__title em{
  font-style:normal;
  background:linear-gradient(135deg,#a5b4fc,#c4b5fd 55%,#93c5fd);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.brandside__lead{color:var(--muted);font-size:15px;line-height:1.95;margin-bottom:28px}

.perks{list-style:none;display:flex;flex-direction:column;gap:13px;margin-bottom:34px}
.perks li{display:flex;align-items:flex-start;gap:11px;font-size:14.5px;color:#cbd5e1}
.perks svg{
  width:21px;height:21px;flex:none;margin-top:2px;
  stroke:#a5b4fc;fill:none;stroke-width:2.1;
}

/* بطاقة معاينة مصغّرة — تُري الزائر الناتج بدل أن تصفه له */
.peek{
  background:rgba(22,29,46,.72);
  border:1px solid rgba(148,163,184,.16);
  border-radius:18px;
  padding:18px;
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  box-shadow:0 22px 48px rgba(0,0,0,.42);
  max-width:280px;
}
.peek__top{display:flex;align-items:center;gap:11px;margin-bottom:14px}
.peek__av{
  width:42px;height:42px;border-radius:50%;flex:none;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:grid;place-items:center;font-size:17px;
}
.peek__name{font-size:14px;font-weight:700;line-height:1.4}
.peek__at{font-size:12px;color:var(--muted);direction:ltr}
.peek__row{
  height:34px;border-radius:10px;margin-bottom:8px;
  background:rgba(148,163,184,.11);
  border:1px solid rgba(148,163,184,.14);
  display:flex;align-items:center;padding-inline:12px;
  font-size:12.5px;color:#cbd5e1;
}
.peek__row:last-child{margin-bottom:0}
.peek__row--hot{
  background:linear-gradient(135deg,rgba(99,102,241,.30),rgba(139,92,246,.30));
  border-color:rgba(139,92,246,.36);color:#e8ecf5;font-weight:600;
}

/* ── جهة النموذج ── */
.formside{
  display:flex;align-items:center;justify-content:center;
  padding:48px 26px;
  background:var(--bg);
}
.formside__in{width:100%;max-width:404px}

.formside__mini{display:none}

.formside__h{font-size:25px;font-weight:800;letter-spacing:-.3px;margin-bottom:7px}
.formside__sub{color:var(--muted);font-size:14px;margin-bottom:26px}

/* البطاقة هنا بلا حدّ ولا ظل: الجهة كلها هي البطاقة */
.formside .card{background:transparent;border:0;padding:0;box-shadow:none}

.formside .sso__btn{padding:13px 16px;font-size:14.5px;border-radius:12px}
.formside .btn--primary{padding:13px 20px;font-size:15px}

.foot{text-align:center;margin-top:24px;font-size:14px;color:var(--muted)}

/* ── الهاتف ── */
@media (max-width:900px){
  .split{grid-template-columns:1fr;min-height:100vh}
  .brandside{display:none}
  .formside{
    align-items:flex-start;
    padding:34px 20px 46px;
    min-height:100vh;
  }
  .formside__in{max-width:420px;margin-inline:auto}

  /* شعار مصغّر يعوّض اللوحة الغائبة */
  .formside__mini{
    display:flex;align-items:center;justify-content:center;gap:8px;direction:ltr;
    font-size:21px;font-weight:800;color:var(--text);
    text-decoration:none;margin-bottom:22px;
  }
  .formside__mini:hover{text-decoration:none}
  .formside__mini b{
    background:linear-gradient(135deg,var(--accent),var(--accent-2));
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  .formside__h{font-size:22px;text-align:center}
  .formside__sub{text-align:center;margin-bottom:22px}
}

@media (max-width:420px){
  .formside{padding:26px 16px 40px}
}

/* من يفضّل تقليل الحركة يُحترم اختياره */
@media (prefers-reduced-motion:reduce){
  .brandside::before,.brandside::after{animation:none}
}
