/* Provider Auth — Figma Auth/Login (6484:3970) */

.mujj-auth-body {
  margin: 0;
  background: #fafffe;
  font-family: 'The Year of Handicrafts', sans-serif;
}

.mujj-auth-lang-toggle {
  position: fixed;
  top: 20px;
  inset-inline-start: 20px;
  z-index: 50;
  margin: 0;
}

.mujj-auth-lang-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.mujj-auth-lang-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  background: #f8fafc;
}

.mujj-auth-lang-btn img {
  display: block;
  width: 28px;
  height: 28px;
}

@media (max-width: 992px) {
  .mujj-auth-lang-toggle {
    top: 14px;
    inset-inline-start: 14px;
  }
}

.mujj-login,
.mujj-login input,
.mujj-login button,
.mujj-login a,
.mujj-login label,
.mujj-login textarea,
.mujj-login select {
  font-family: 'The Year of Handicrafts', sans-serif;
}

.mujj-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  direction: ltr;
}

html[dir="ltr"] .mujj-login {
  direction: rtl;
}

html[dir="ltr"] .mujj-login__panel,
html[dir="ltr"] .mujj-login__hero-content,
html[dir="ltr"] .mujj-login__features li,
html[dir="ltr"] .mujj-login__field > label,
html[dir="ltr"] .mujj-login__input input {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .mujj-login__features li {
  justify-content: flex-start;
}

/* —— Hero (visual panel) —— */
.mujj-login__hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  overflow: hidden;
  background: #082d72;
}

.mujj-login__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
}

.mujj-login__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 187, 251, 0.18), rgba(0, 0, 0, 0) 55%),
    rgba(8, 45, 114, 0.58);
  pointer-events: none;
}

.mujj-login__hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  direction: rtl;
  text-align: center;
}

.mujj-login__hero-logo {
  width: 170px;
  height: 170px;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 0 15.35px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(43.9px);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.mujj-login__hero-title {
  margin: 0 0 48px;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
}

.mujj-login__features {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 297px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mujj-login__features li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: right;
  width: 100%;
}

.mujj-login__check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50px;
  background: #fff;
  display: grid;
  place-items: center;
}

.mujj-login__check img {
  width: 11px;
  height: 8px;
  display: block;
  transform: rotate(180deg) scaleX(-1);
}

/* —— Form panel —— */
.mujj-login__panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  background: #fafffe;
  direction: rtl;
}

.mujj-login__form-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mujj-login__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  min-height: 120px;
  align-items: flex-start;
}

.mujj-login__heading {
  margin: 0 0 8px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 42px;
  color: #111827;
}

.mujj-login__sub {
  margin: 0 0 32px;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  color: #6b7381;
  font-weight: 400;
}

.mujj-login__form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Tabs */
.mujj-login__tabs {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 45px;
  padding: 4px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.06);
}

.mujj-login__tab {
  flex: 1;
  height: 37px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 19.5px;
  color: #9ca3af;
  padding: 8px;
}

.mujj-login__tab img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) saturate(100%) invert(72%) sepia(8%) saturate(286%) hue-rotate(182deg);
}

.mujj-login__tab.is-active {
  background: #0e5aef;
  color: #fff;
}

.mujj-login__tab.is-active img {
  filter: brightness(0) invert(1);
}

/* Fields */
.mujj-login__field {
  margin-bottom: 20px;
  width: 100%;
}

.mujj-login__field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  color: #111827;
  text-align: right;
}

.mujj-login__input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 0 15.35px rgba(0, 0, 0, 0.06);
  padding: 0 16px;
}

.mujj-login__input--password {
  border-radius: 12px;
  padding-left: 45px;
  padding-right: 17px;
}

/* City picker — same look as text inputs + searchable panel */
.mujj-city-picker {
  position: relative;
}

.mujj-city-picker__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.mujj-city-picker__trigger {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  padding-inline: 16px;
}

.mujj-city-picker__trigger span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  color: #111827;
  text-align: right;
}

html[dir="ltr"] .mujj-city-picker__trigger span {
  text-align: left;
}

.mujj-city-picker__trigger span.is-placeholder {
  color: #606266;
}

.mujj-city-picker__trigger i {
  flex: 0 0 auto;
  font-size: 12px;
  color: #6b7280;
  transition: transform .2s ease;
}

.mujj-city-picker__trigger.is-open,
.mujj-city-picker.is-open .mujj-city-picker__trigger {
  border-color: #0E5AEF;
  box-shadow: 0 0 0 3px rgba(14, 90, 239, 0.12);
}

.mujj-city-picker__trigger.is-open i {
  transform: rotate(180deg);
  color: #0E5AEF;
}

.mujj-city-picker__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  inset-inline: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.mujj-city-picker__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.mujj-city-picker__search i {
  color: #94a3b8;
  font-size: 13px;
}

.mujj-city-picker__search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: #111827;
}

.mujj-city-picker__search input::placeholder {
  color: #94a3b8;
}

.mujj-city-picker__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.mujj-city-picker__list li {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  transition: background .15s ease;
}

.mujj-city-picker__list li:hover,
.mujj-city-picker__list li:focus {
  background: #f1f5f9;
  outline: 0;
}

.mujj-city-picker__list li.is-selected {
  background: rgba(14, 90, 239, 0.08);
  color: #0E5AEF;
  font-weight: 600;
}

.mujj-city-picker__empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.mujj-login__input input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #111827;
  text-align: right;
  margin: 0;
  padding: 0;
}

.mujj-login__input input::placeholder {
  color: #606266;
}

.mujj-login__input--password input {
  font-size: 14px;
  line-height: 20px;
}

.mujj-login__field-icon {
  flex: 0 0 18px;
  margin-right: 0;
  margin-left: 0;
}

.mujj-login__input--phone {
  gap: 16px;
}

.mujj-login__phone-row {
  display: flex;
  flex-direction: row;
  direction: ltr;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

.mujj-login__phone-row .mujj-login__input--phone {
  flex: 1;
  min-width: 0;
  gap: 12px;
  direction: rtl;
}

.mujj-login__phone-row .mujj-login__input--phone input {
  text-align: right;
}

.mujj-login__cc {
  flex: 0 0 76px;
  width: 76px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  direction: ltr;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 0 15.35px rgba(0, 0, 0, 0.06);
  color: #606266;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  padding: 0 8px;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.mujj-login__flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.mujj-login__eye {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.mujj-login__eye.is-showing img {
  opacity: 1;
  filter: none;
}

.mujj-login__eye:not(.is-showing) img {
  opacity: 0.75;
}

.mujj-login__eye img {
  display: block;
  transition: opacity .15s ease;
}

/* Remember / forgot */
.mujj-login__meta {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  min-height: 20px;
}

.mujj-login__forgot {
  color: #0e5aef;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
}

.mujj-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #6b7381;
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}

.mujj-login__remember input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.mujj-login__remember input:checked {
  background: #0e5aef url("../imgs/checkmark.svg") center / 14px no-repeat;
  border-color: #0e5aef;
}

.mujj-login__submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #0e5aef;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.mujj-login__submit:hover {
  background: #0b49c4;
}

.mujj-login__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.mujj-login__divider span {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.mujj-login__divider em {
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
  color: #9ca3af;
}

.mujj-login__signup {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

.mujj-login__signup span {
  color: #6b7381;
  font-weight: 400;
}

.mujj-login__signup a {
  color: #0e5aef;
  font-weight: 700;
  margin-right: 4px;
}

.mujj-login .alert-error,
.mujj-login .alert-success {
  margin-bottom: 16px;
}

/* —— Logo composite (Figma groups) —— */
.mujj-logo {
  position: relative;
  flex-shrink: 0;
}

.mujj-logo img {
  position: absolute;
  display: block;
  max-width: none;
}

.mujj-logo--md {
  width: 108px;
  height: 120px;
}

.mujj-logo--lg {
  width: 108px;
  height: 120px;
}

.mujj-logo--sm {
  width: 88px;
  height: 72px;
}

.mujj-logo--site {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mujj-logo--site img,
.mujj-logo--site .mujj-logo__site {
  position: static !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}

.mujj-logo--site.mujj-logo--sm {
  width: 120px;
  height: 48px;
}

.mujj-logo--site.mujj-logo--md {
  width: 140px;
  height: 64px;
}

.mujj-logo--site.mujj-logo--lg {
  width: 180px;
  height: 84px;
}

.mujj-logo--md .mujj-logo__m,
.mujj-logo--lg .mujj-logo__m {
  width: 78.851px;
  height: 76.166px;
  left: 30.87px;
  top: 0;
}

.mujj-logo--md .mujj-logo__word,
.mujj-logo--lg .mujj-logo__word {
  width: 96.756px;
  height: 41.414px;
  left: 5.5px;
  top: 68.59px;
}

.mujj-logo--md .mujj-logo__p2,
.mujj-logo--lg .mujj-logo__p2 {
  width: 87.667px;
  height: 66.036px;
  left: 0;
  top: 10.06px;
}

.mujj-logo--md .mujj-logo__p3,
.mujj-logo--lg .mujj-logo__p3 {
  width: 34.797px;
  height: 29.656px;
  left: 56.32px;
  top: 14.36px;
}

/* Register / Forget extras */
.mujj-login__heading--start,
.mujj-login__sub--start {
  text-align: right;
}

.mujj-login__sub--sm {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 32px;
}

.mujj-login__form-wrap--register .mujj-login__field {
  margin-bottom: 16px;
}

.mujj-login__form-wrap--register .mujj-login__field > label {
  color: #374151;
  margin-bottom: 6px;
}

.mujj-login__form-wrap--register .mujj-login__input {
  border-radius: 12px;
}

.mujj-login__form-wrap--register .mujj-login__input input {
  font-size: 14px;
}

.mujj-login__form-wrap--register .mujj-login__phone-row .mujj-login__input--phone {
  border-radius: 16px;
}

.mujj-login__terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 24px;
  cursor: pointer;
  color: #6b7381;
  font-size: 13px;
  line-height: 20px;
  text-align: right;
}

.mujj-login__terms input {
  appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.mujj-login__terms input:checked {
  background: #0e5aef url("../imgs/checkmark.svg") center / 14px no-repeat;
  border-color: #0e5aef;
}

.mujj-login__terms a {
  color: #0e5aef;
  font-weight: 700;
}

.mujj-login__illus {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  display: grid;
  place-items: center;
}

.mujj-login__illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mujj-login__back {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  color: #6b7381;
  font-size: 14px;
  line-height: 20px;
}

.mujj-login__back span {
  direction: rtl;
  unicode-bidi: plaintext;
}

.mujj-login__back img {
  width: 16px;
  height: 16px;
  display: block;
  order: 2;
  transform: none;
}

.mujj-login__otp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 100%;
}

.mujj-login__otp-box {
  width: 60px;
  height: 60px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: inherit;
  color: #111827;
  outline: none;
  padding: 0;
}

.mujj-login__otp-box:focus {
  border-color: #0e5aef;
  box-shadow: 0 0 0 3px rgba(14, 90, 239, 0.12);
}

.mujj-login__resend {
  margin: 0 0 20px;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #9ca3af;
}

.mujj-login__resend-btn {
  border: 0;
  background: transparent;
  color: #0e5aef;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.mujj-login__field--last {
  margin-bottom: 24px;
}

.mujj-login__panel {
  overflow-y: auto;
  max-height: 100vh;
  align-items: flex-start;
  padding-top: max(48px, 5vh);
  padding-bottom: max(48px, 5vh);
}

@media (max-width: 992px) {
  .mujj-login {
    grid-template-columns: 1fr;
  }

  .mujj-login__hero {
    min-height: 420px;
    padding: 40px 24px;
  }

  .mujj-login__panel {
    padding: 40px 24px;
    min-height: auto;
  }

  .mujj-login__hero-title {
    margin-bottom: 28px;
  }

  .mujj-login__heading--start,
  .mujj-login__sub--start {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mujj-login__cc span {
    display: none;
  }

  .mujj-login__cc {
    flex-basis: 56px;
    width: 56px;
  }

  .mujj-login__otp-box {
    width: 52px;
    height: 52px;
  }
}

/* Location map picker (register) */
.mujj-login__input--location {
  padding-left: 48px;
  padding-right: 16px;
}

.mujj-login__map-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff1f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mujj-login__map-btn:hover {
  background: #ffe4e6;
}

.mujj-login__map-panel {
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 15.35px rgba(0, 0, 0, 0.06);
}

.mujj-login__map-panel[hidden] {
  display: none !important;
}

.mujj-login__map-hint {
  padding: 10px 14px;
  font-size: 12px;
  color: #6b7381;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
}

.mujj-login__map {
  width: 100%;
  height: 240px;
}

/* Google Places dropdown — يمنع الخط الرمادي العالق أثناء السكرول */
.pac-container {
  z-index: 10050 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12) !important;
  border: 1px solid #e5e7eb !important;
  margin-top: 4px;
  font-family: inherit;
}

.pac-container:empty,
.pac-container[style*="display: none"] {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
