/* =========================
   1) إخفاء نافبار وفوتر ERPNext
   ========================= */
.navbar,
.web-footer {
  display: none !important;
}

/* إزالة أي padding من قالب ERPNext */
.page-content,
.layout-main-section {
  padding: 0 !important;
}

/* =========================
   2) إعدادات أساسية للصفحة
   ========================= */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f9;
  min-height: 100vh;
  overflow: hidden; /* لا يوجد سكرول لتحت */
}

/* أمان لتخطيط الكونتينر العام في بعض ثيمات ERPNext */
.container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* =========================
   3) الكونتينر الأساسي – auth-wrapper
   ========================= */
.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100vh;          /* طول الشاشة بالكامل */
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* =========================
   4) الجزء اليسار – Illustration (2/3)
   ========================= */
.left-panel {
  position: relative;
  flex: 0 0 72.666%;
  max-width: 72.666%;

  background: #f0faf6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.left-panel .logo {
  position: absolute;
  top: 1.25rem;
  left: 1.75rem;
}

.left-panel .logo img {
  width: 40px;
  height: auto;
}

/* حاوية الرسمة */
.left-panel .illustration {
  position: relative;
  width: 100%;
  max-width: 610px;
}

/* صورة الولد */
.left-panel .illustration .hero-illustration {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}

/* الـ Mask الرمادي في الخلفية */
.left-panel .bg-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 130%;
  height: auto;
  max-height: 355px;
  z-index: 1;
  pointer-events: none;
}

/* الكروت الإحصائية – لو حبيت ترجع تفعّلها */
.left-panel .stats {
  position: absolute;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  width: 150px;
  text-align: left;
  font-size: 0.75rem;
}

.left-panel .stats:nth-of-type(1) {
  top: 40%;
  left: 18%;
}

.left-panel .stats:nth-of-type(2) {
  top: 55%;
  left: 45%;
}

.left-panel .stats h5 {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333333;
}

.left-panel .stats p {
  margin-bottom: 0.5rem;
  color: #888888;
}

.left-panel .stats .value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2f9e74;
}

.left-panel .stats .change {
  font-size: 0.75rem;
  color: #2f9e74;
  margin-left: 0.25rem;
}

/* =========================
   5) الجزء اليمين – فورم اللوجين (1/3)
   ========================= */
.right-panel {
  flex: 0 0 27.333%;
  max-width: 27.333%;

  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem;
  color: #4b465c;
}

/* العنوان Welcome 👋🏻 */
.right-panel h1 {
  font-size: 2rem; /* حوالي 32px */
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #3a3541;
}

/* الوصف تحت العنوان */
.right-panel p.tagline {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 2.25rem 0;
  color: #a5a3ae;
}

/* =========================
   6) بانر بيانات التجربة – demo-alert
   ========================= */
.demo-alert {
  width: 100%;
  max-width: 420px;
  background-color: #f4f0ff;       /* بنفسجي فاتح جداً */
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.75rem;
  color: #7367f0;
  font-size: 0.9rem;
}

.demo-alert .demo-text strong {
  font-weight: 600;
}

/* =========================
   7) الفورم – login-form
   ========================= */
form.login-form {
  max-width: 420px;
  width: 100%;
}

/* المجموعة لكل فيلد */
.form-group {
  margin-bottom: 1.25rem;
}

/* الليبل */
form.login-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5e5873;
}

/* الحقول الأساسية */
form.login-form input[type="text"],
form.login-form input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid #d8d6de;
  font-size: 0.9rem;
  background-color: #ffffff;
  color: #4b465c;

  box-shadow: 0 2px 4px rgba(76, 78, 100, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* التركيز */
form.login-form input[type="text"]:focus,
form.login-form input[type="password"]:focus {
  outline: none;
  border-color: #00c853;
  background-color: #ffffff;
  box-shadow:
    0 0 0 1px #00c853,
    0 4px 10px rgba(0, 200, 83, 0.35);
}

/* =========================
   8) حقل الباسورد مع أيقونة العين
   ========================= */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  padding-right: 2.5rem; /* مساحة لأيقونة العين */
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #a5a3ae;
}

/* =========================
   9) Remember me + Forgot password
   ========================= */
.form-row {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.form-row.between {
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

/* الحاوية العامة للـ Remember me */
.checkbox-remember {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* إخفاء الـ input الأصلي */
.checkbox-remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* شكل زر التشيك نفسه */
.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid #dadada;
  box-shadow: none;
  display: inline-block;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.1s ease;
}

/* عند التفعيل */
.checkbox-remember input:checked + .checkbox-custom {
  background: #00c853; /* لون الهوية */
  border-color: #00c853;
  box-shadow: 0 4px 10px rgba(0, 200, 83, 0.35); /* نفس ستايل الصورة */
  transform: translateY(-1px);
}

/* علامة الصح */
.checkbox-remember input:checked + .checkbox-custom::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
}

/* نص Remember me */
.checkbox-label {
  font-size: 0.95rem;
  color: #4b465c;
}



/* Forgot password */
.forgot-link {
  font-size: 0.85rem;
  color: #00c853;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* =========================
   10) زر Login
   ========================= */
.btn-primary {
  padding: 0.75rem 2.5rem;
  border: none;
  border-radius: 8px;
  background-color: #00c853;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;

box-shadow: 0 4px 10px rgba(0, 200, 83, 0.35);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn-primary.is-full {
  width: 100%;
}

.btn-primary:hover {
  background-color: #00c853;
  box-shadow: 0 6px 14px rgba(0, 200, 83, 0.35);
  transform: translateY(-1px);
}

/* =========================
   11) الفوتر – Create account
   ========================= */
.separator {
  display: none; /* لم نعد نحتاجه بالشكل الجديد، ممكن تستخدمه لو حبيت */
}

.login-footer {
  text-align: center;
  font-size: 0.9rem;
  color: #a5a3ae;
  margin-top: 1.5rem;
}

.login-footer a {
  color: #00c853;
  text-decoration: none;
  margin-left: 0.25rem;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* =========================
   12) Divider "or"
   ========================= */
.divider-or {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.75rem 0;
  color: #a5a3ae;
  font-size: 0.85rem;
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #ebe9f1;
}

.divider-or span {
  margin: 0 0.75rem;
}

/* =========================
   13) زر Google
   ========================= */
.social-login {
  display: flex;
  justify-content: center;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  border: 1px solid #d8d6de;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4b465c;
  box-shadow: 0 2px 4px rgba(76, 78, 100, 0.06);
  transition: box-shadow 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
}

.btn-google:hover {
  border-color: #00c853;
  box-shadow: 0 4px 10px rgba(115, 103, 240, 0.18);
  transform: translateY(-1px);
}

.google-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: Arial, sans-serif;
  color: #ea4335; /* لون G تقريبي */
}

.google-text {
  white-space: nowrap;
}

/* =========================
   14) موبايل – نفس إحساس Vuexy
   ========================= */
@media (max-width: 900px) {
  .auth-wrapper {
    flex-direction: column;
    height: 100vh;
  }

  .left-panel {
    display: none; /* على الموبايل بنعرض بس الفورم */
  }

  .right-panel {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 3rem 1.75rem;
    justify-content: flex-start;
  }

  form.login-form {
    max-width: 100%;
  }
}
