/* =====================================================================
   auth.css — صفحات المصادقة (بطاقة واحدة موسّطة)  •  بعد site.css
   ---------------------------------------------------------------------
   كانت بطاقةً بعمودين: لوحة هوية teal + لوحة نموذج. أُسقطت لوحة الهوية
   (نصوصٌ مثبَّتة من مشروعٍ سابق تخرق قاعدة White-label)، فصارت البطاقة
   عمودًا واحدًا والشعارُ يُقرأ من الإعدادات فوق النموذج.
   ===================================================================== */

.auth-body { background: var(--bg-page); min-height: 100vh; display: flex; }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 470px; background: #fff; border-radius: var(--r-2xl);
  box-shadow: 0 30px 70px rgba(20,90,84,.16); overflow: hidden;
}

/* ===== لوحة النموذج ===== */
.auth-form { padding: clamp(30px,4vw,44px) clamp(24px,3.4vw,38px); display: flex; flex-direction: column; }
/* الترويسة ظاهرة على كل المقاسات — لم تعد لوحة الهوية تحمل الشعار على الشاشات الكبيرة. */
.auth-form__logo-m { display: block; text-align: center; margin-bottom: 20px; }
.auth-form__logo-m img { height: 76px; width: auto; max-width: 230px; object-fit: contain; }
@media (max-width: 767.98px) { .auth-form__logo-m img { height: 58px; } }

/* بديل الشعار حين لا تُرفع صورة: اسم المنصّة نصًّا (نفس خطّ العناوين). */
.auth-form__name {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(24px,4.2vw,30px); line-height: 1.35; color: var(--c-teal-d);
}

.auth-pane__title { font-family: var(--font-head); font-weight: 800; font-size: 23px; color: var(--c-ink); margin: 0 0 4px; }
.auth-pane__sub { font-size: 14px; color: var(--c-muted); font-weight: 500; margin: 0 0 22px; }

.auth-field { margin-bottom: 15px; position: relative; }
.auth-field .q-input { padding-right: 42px; }
.auth-fico { position: absolute; right: 14px; bottom: 13px; color: var(--c-muted-3); pointer-events: none; display: flex; line-height: 0; }
.auth-pass { position: relative; }
.auth-pass .q-input { padding-left: 44px; }

/* شارة الأمان أعلى النموذج */
.auth-secure { display: inline-flex; align-items: center; gap: 7px; align-self: center; background: var(--bg-soft-teal); color: var(--c-teal-d); font-weight: 700; font-size: 12.5px; padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 18px; }

/* فوتر النموذج: العودة للموقع + الحقوق */
.auth-sitefoot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.auth-sitefoot a { font-size: 13.5px; font-weight: 800; color: var(--c-teal-d); }
.auth-sitefoot a:hover { text-decoration: underline; }
.auth-sitefoot span { font-size: 12px; color: var(--c-muted-3); font-weight: 600; }
.auth-pass .toggle { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--c-muted-2); padding: 5px; display: flex; }
.auth-pass .toggle:hover { color: var(--c-teal-d); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; flex-wrap: wrap; gap: 8px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-muted); font-weight: 600; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--c-teal); }
.auth-link { font-size: 14px; font-weight: 700; color: var(--c-teal-d); }
.auth-link:hover { text-decoration: underline; }

.auth-errors { background: #FDECEC; border: 1px solid #F3C7C7; color: #B23B3B; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.auth-errors ul { margin: 0; padding-inline-start: 18px; }

.auth-foot { text-align: center; font-size: 14px; color: var(--c-muted); margin-top: 20px; }
.auth-foot a { color: var(--c-teal-d); font-weight: 800; cursor: pointer; }
.auth-foot a:hover { text-decoration: underline; }
