/* =========================================================
   MFS AUTH (Login / Register) - Split Layout
   ========================================================= */


/* =========================================================
   1) Base / Page Reset
   ========================================================= */
html, body { height: 100%; }

body.mfs-auth-split{
  margin: 0;
  overflow: hidden; /* نخليه hidden للصفحة */
}

/* Mobile: single-column login (no yellow panel) */
@media (max-width: 768px) {
  body.mfs-auth-split{
    overflow: auto;
  }

  .mfs-auth-page{
    height: auto;
    min-height: 100vh;
    flex-direction: column;
  }

  .mfs-auth-right{
    display: none;
  }

  .mfs-auth-left{
    height: auto;
    overflow: visible;
    padding: 20px 16px;
    align-items: stretch;
  }

  .mfs-auth-form{
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

.mfs-auth-left{
  height: 100vh;            /* ثابت */
  overflow-y: auto;         /* ✅ سكروول داخل العمود اليسار */
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;  /* بدل center عشان ما يقص المحتوى */
  padding-top: 40px;
  padding-bottom: 40px;
}

.mfs-auth-form{
  width: 420px;
  margin: 0 auto;           /* ✅ يحافظ على التمركز أفقيًا */
}


/* =========================================================
   2) Split Layout (Left Form + Right Brand)
   ========================================================= */
.mfs-auth-page{
  height: 100vh;
  display: flex;
}

/* LEFT */
.mfs-auth-left{
  flex: 1;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
}

/* RIGHT */
.mfs-auth-right{
  flex: 1.3;
  background: linear-gradient(135deg,#f7f7f7,#ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Right Logo */
.mfs-right-logo{
  width: 500px;
}

/* Form Width */
.mfs-auth-form{
  width: 420px;
}


/* =========================================================
   3) Language Dropdown (Top Corner)
   ========================================================= */
.mfs-lang{
  position: absolute;
  top: 20px;
  right: 20px;
}

[dir="rtl"] .mfs-lang{
  right: auto;
  left: 20px;
}

/* Language Button */
.mfs-lang-btn{
  border: 1px solid #020659;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none !important;
    background: rgb(2 6 89 / 10%);
  color: #020659 !important;
}

/* ✅ Fix: remove bullets in dropdown */
.mfs-lang .dropdown-menu,
.mfs-lang .dropdown-menu li,
.mfs-lang-dd ul,
.mfs-lang-dd li,
.mfs-lang-dd .dropdown-menu li{
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}


/* =========================================================
   4) Head (Title + Subtitle)
   ========================================================= */
.mfs-auth-head{
  margin-bottom: 20px;
}

.mfs-title{
  font-size: 26px;
  font-weight: 800;
}

.mfs-sub{
  font-size: 14px;
  color: #666;
}


/* =========================================================
   5) Role Switch (Customer / Vendor)
   ========================================================= */
.mfs-role-switch{
  display: flex;
  gap: 12px;
  margin: 12px 0 18px;
}

.mfs-role-btn{
  flex: 1;
  height: 46px;
  border-radius: 0px;
  border: 1px solid rgba(15,25,35,0.14);
  background: #fff;
  cursor: pointer;
  font-weight: 800;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  text-decoration: none !important;

  color: #6b7280; /* الافتراضي رمادي */
  transition: all .2s ease;
}

/* Hover */
.mfs-role-btn:hover{
  background: rgb(2 6 89 / 10%);
  color: #020659 !important;
  border-color: #020659;
}

/* Active */
.mfs-role-btn.active{
  border-color: #020659;
  background: rgb(2 6 89 / 10%);
  color: #111 !important;
  box-shadow: 0 0 0 4px rgb(2 6 89 / 10%);
}


/* =========================================================
   6) Form Fields (Label + Input)
   ========================================================= */
.mfs-field{
  margin-bottom: 15px;
}

.mfs-label{
  font-size: 12px;
  font-weight: 700;
  color: #020659;
  display: block;
  margin-bottom: 6px;
}

.mfs-input{
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
}


/* =========================================================
   8) Bottom Links (Old Style)
   ========================================================= */
.mfs-bottom-links{
  margin-top: 15px;
  text-align: center;
}

.mfs-link{
  display: block;
  margin-top: 6px;
  color: #b07a00;
  text-decoration: none !important;
}


/* =========================================================
   9) Register Text (Inline: "Don't have an account? Register now")
   ========================================================= */
.mfs-register-text{
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  white-space: nowrap;
  text-align: center;
}

.mfs-register-text a{
  display: inline !important;
  color: #b0c9d9 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.mfs-register-text a:hover,
.mfs-register-text a:focus{
  text-decoration: none !important;
  color: #9cb3c1 !important;
}


/* =========================================================
   10) Global Link Rule (No underline anywhere)
   ========================================================= */
.mfs-auth-page a,
.mfs-auth-page a:hover{
  text-decoration: none !important;
}



/* =========================================================
   6) Form Fields (Label + Input)
   ========================================================= */
.mfs-field{
  margin-bottom: 15px;
}

.mfs-label{
  font-size: 12px;
  font-weight: 700;
  color: #020659;
  display: block;
  margin-bottom: 6px;
}

.mfs-input{
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
}


/* =========================================================
   7) Primary Submit Button
   ========================================================= */
.mfs-primary-btn{
  width: 100%;
  padding: 12px;
  background: #020659;
  border: none;
  font-weight: 700;
  margin-top: 10px;
  color: #ffffff;
}


/* =========================================================
   8) Bottom Links (Old Style)
   ========================================================= */
.mfs-bottom-links{
  margin-top: 15px;
  text-align: center;
}

.mfs-link{
  display: block;
  margin-top: 6px;
  color: #b07a00;
  text-decoration: none !important;
}


/* =========================================================
   9) Register Text (Inline: "Don't have an account? Register now")
   ========================================================= */
.mfs-register-text{
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  white-space: nowrap;
  text-align: center;
}

.mfs-register-text a{
  display: inline !important;
  color: #b0c9d9 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.mfs-register-text a:hover,
.mfs-register-text a:focus{
  text-decoration: none !important;
  color: #9ab2c1 !important;
}


/* =========================================================
   10) Global Link Rule (No underline anywhere)
   ========================================================= */
.mfs-auth-page a,
.mfs-auth-page a:hover{
  text-decoration: none !important;
}

.mfs-dd-btn{
  width: 100%;
  height: 54px;
  border: 1px solid #e6e9ef;
  background: #ffffff;   /* أبيض افتراضي */
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #111827;
  transition: all .25s ease;
}


.mfs-link-inline{
    color: #b0c9d9 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.mfs-link-inline:hover,
.mfs-link-inline:focus{
  color: #fbba16 !important;
}
.mfs-forgot-link{
  display: inline-block;
  margin-top: 8px;
   color: #7a7a7a;
}

.mfs-forgot-link:hover{
     color: #fbba16;
}

/* نفس لون Register now + hover */
.mfs-link,
.mfs-link:visited{
  color: #b0c9d9;
  font-weight: 800;
  text-decoration: none;
  transition: 0.24s cubic-bezier(0.4,0,0.2,1);
}

.mfs-link:hover{
  color: #88a4b6;
  text-decoration: underline;
}

/* رابط forgot داخل الفورم */
.mfs-forgot-link{
  display: inline-flex;
  margin-top: 10px;
}