/* Full viewport shell */
.mazel-auth {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  position: relative;
  font-family: inherit;
}
.mazel-auth,
.mazel-auth * {
  box-sizing: border-box;
}

/* Background grid like your design */
.mazel-auth-wrap {
  background-color: #ffffff;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px;
  background-position: 0 0, 0 0;
}

/* Fixed centered logo */
.mazel-auth-logo {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}
.mazel-auth-logo img {
  height: 56px;
  width: auto;
  display: block;
}
.mazel-auth-wrap.is-form-open .mazel-auth-logo {
  opacity: 0;
}

.mazel-auth {
  height: auto;
  overflow: visible;
}

/* Split layout */
.mazel-split {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* subtle center divider */
.mazel-split::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0,0,0,0.08);
  transform: translateX(-0.5px);
  pointer-events: none;
}

/* Role blocks */
.mazel-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: background 200ms ease, opacity 200ms ease;
  padding: 24px 18px;
}

/* keep content visually centered even with fixed logo */
.mazel-choice-inner {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mazel-choice-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
}

.mazel-choice-sub {
  max-width: 360px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #7a7a7a;
}

.mazel-choice-line {
  width: 110px;
  height: 2px;
  background: rgba(0,0,0,0.16);
  margin-top: 6px;
  transition: background 200ms ease;
}

/* Different hover colors by role */
.mazel-choice[data-role="customer"].is-active {
  background: #eef3e7; /* green pale */
}
.mazel-choice[data-role="customer"].is-active .mazel-choice-line {
  background: #8a9b5a;
}

.mazel-choice[data-role="designer"].is-active {
  background: #f3ede5; /* cream/brown pale */
}
.mazel-choice[data-role="designer"].is-active .mazel-choice-line {
  background: #b07a57;
}

.mazel-choice.is-dim {
  opacity: 0.55;
}

/* Form screen overlay */
.mazel-form-screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(244, 246, 238, 0.92);
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 40px 16px; /* space for centered card */
}

.mazel-back {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #606060;
  font-size: 14px;
  margin-bottom: 12px;
}
.mazel-back::before {
  content: "\2190";
}

/* Card */
.mazel-card {
  width: 420px;
  max-width: 92vw;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  padding: 26px 26px 22px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.mazel-logo-slot {
  display: none; /* چون لوگو بالا ثابت شد */
}

.mazel-card-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}
.mazel-card-logo img {
  height: 74px;
  width: auto;
  display: block;
}

.mazel-title {
  font-size: 16px;
  color: #606060;
  margin: 4px 0 18px;
}

.mazel-quick-box {
  border: 2px dashed rgba(158, 179, 109, 0.55);
  border-radius: 14px;
  padding: 18px 20px 16px;
  background: rgba(248, 251, 242, 0.7);
  margin-bottom: 12px;
  overflow: hidden;
}
.mazel-quick-title {
  font-size: 13px;
  color: #7b7b7b;
  text-align: center;
  margin-bottom: 12px;
}

.mazel-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.mazel-form-steps {
  width: 100%;
  overflow: hidden;
}
.mazel-form-steps,
.mazel-stepper,
.mazel-step-track,
.mazel-step-panel {
  max-width: 100%;
  box-sizing: border-box;
}

.mazel-form label {
  font-size: 12px;
  color: #666;
}

.mazel-form input {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
  display: block;
  box-sizing: border-box !important;
  margin: 0;
}
.mazel-form select {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
  background: #fff;
  display: block;
  box-sizing: border-box !important;
  margin: 0;
}

.mazel-stepper {
  width: 100%;
  overflow: hidden;
}
.mazel-step-track {
  display: flex !important;
  flex-wrap: nowrap;
  width: 300%;
  transition: transform 360ms ease;
  transform: translateX(0);
}
.mazel-step-panel {
  flex: 0 0 100% !important;
  width: 100% !important;
}
.mazel-step-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  align-items: stretch;
}
.mazel-step-actions .mazel-btn {
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
}


.mazel-auth a,
.mazel-auth a:visited {
  color: #8b5a3c !important;
}
.mazel-auth button,
.mazel-auth input,
.mazel-auth select {
  font-family: inherit;
  box-sizing: border-box !important;
}

.mazel-pass-meter {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.mazel-pass-bar {
  height: 100%;
  width: 0%;
  background: #c0392b;
  transition: width 220ms ease, background 220ms ease;
}
.mazel-pass-note {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
  text-align: center;
}

.mazel-btn {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 12px;
  background: #8b5a3c !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
}

.mazel-btn.mazel-btn-next {
  background: #d7e6c6 !important;
  color: #2f4b2f !important;
}
.mazel-btn.mazel-btn-ghost {
  background: transparent !important;
  color: #2f4b2f !important;
  border: 1px solid #c6d6b3 !important;
}
.mazel-btn.mazel-btn-confirm {
  background: #2f6b3f !important;
  color: #fff !important;
}

.mazel-bottom-link {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.mazel-bottom-link a {
  color: #8b5a3c;
  text-decoration: none;
  font-weight: 600;
}

.mazel-foot {
  margin-top: 16px;
  font-size: 13px;
  color: #7a7a7a;
}

.mazel-alert {
  background: rgba(255, 67, 67, 0.10);
  color: #8a1f1f;
  border: 1px solid rgba(255, 67, 67, 0.20);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

/* Mobile: vertical split exactly 50/50 */
@media (max-width: 860px) {
  .mazel-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 100vh;
  }

  .mazel-split::after {
    left: 0;
    top: 50%;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 1px;
    transform: translateY(-0.5px);
  }

  .mazel-choice {
    min-height: auto;
    padding: 16px;
  }

  .mazel-choice-inner {
    margin-top: 24px;
  }

  .mazel-auth-logo img {
    height: 48px;
  }
}

@media (max-width: 600px) {
  .mazel-form-screen {
    padding: 24px 12px;
  }

  .mazel-card {
    padding: 18px 18px 16px;
  }

  .mazel-card-logo img {
    height: 64px;
  }

  .mazel-back { }
}
