/* =====================================================================
   auth.css — صفحة تسجيل الدخول / حساب جديد (تخطيط split)  •  بعد site.css
   ===================================================================== */

.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: 980px; background: #fff; border-radius: var(--r-2xl);
  box-shadow: 0 30px 70px rgba(20,90,84,.16); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 600px;
}
@media (max-width: 767.98px) { .auth-card { grid-template-columns: 1fr; max-width: 460px; min-height: 0; } }

/* ===== لوحة الهوية (teal) — تخطيط مركزي ===== */
.auth-brand {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(158deg,#0E8A82 0%,#15A99F 100%);
  padding: 48px 38px; display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 767.98px) { .auth-brand { display: none; } }
.auth-brand__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.auth-brand__chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 26px; }
.auth-brand__logo { display: inline-block; margin-bottom: 22px; animation: floaty 6s ease-in-out infinite; }
.auth-brand__logo img { height: 104px; width: auto; display: block; filter: brightness(0) invert(1); }
.auth-brand h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px,3.2vw,34px); line-height: 1.4; margin: 0 0 16px; color: #fff; }
.auth-brand p { font-size: 15px; line-height: 1.9; color: #D8F1EE; font-weight: 500; margin: 0 0 28px; max-width: 360px; }
.auth-brand__pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.auth-brand__pills span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 18px; border-radius: var(--r-pill); }

/* ===== لوحة النموذج ===== */
.auth-form { padding: clamp(30px,4vw,46px) clamp(24px,3.4vw,42px); display: flex; flex-direction: column; justify-content: center; }
.auth-form__logo-m { display: none; text-align: center; margin-bottom: 18px; }
@media (max-width: 767.98px) { .auth-form__logo-m { display: block; } .auth-form__logo-m img { height: 56px; } }

.auth-tabs { display: flex; background: var(--bg-page); border-radius: 14px; padding: 5px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; border: none; background: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 15px; color: var(--c-muted); padding: 11px; border-radius: 10px; transition: all .15s; }
.auth-tabs button.is-active { background: #fff; color: var(--c-teal-d); box-shadow: 0 4px 12px rgba(20,90,84,.08); }

.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; }
