:root {
  --kwm-auth-font:
    "KWM Vazirmatn FD", "Vazirmatn", "IRANSansX", "YekanBakh", Tahoma, Arial,
    sans-serif;
  --kwm-auth-ink: #0f172a;
  --kwm-auth-muted: #64748b;
  --kwm-auth-gold: #caa45d;
  --kwm-auth-gold-2: #e2c477;
  --kwm-auth-border: rgba(226, 232, 240, 0.92);
  --kwm-auth-soft: #f8fafc;
  --kwm-auth-dark: #0a0a0a;
  --kwm-auth-radius: 28px;
  --kwm-auth-shadow: 0 30px 90px rgba(15, 23, 42, 0.1);
}
.kwm-auth-page,
.kwm-auth-page * {
  box-sizing: border-box;
  font-family: var(--kwm-auth-font);
}
.kwm-auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 680px;
  padding: clamp(34px, 5vw, 82px) 16px;
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(202, 164, 93, 0.14),
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 18%,
      rgba(226, 196, 119, 0.1),
      transparent 30%
    ),
    linear-gradient(180deg, #fff, #f8fafc 55%, #fff);
  color: var(--kwm-auth-ink);
  direction: rtl;
}
.kwm-auth-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.kwm-auth-bg span {
  position: absolute;
  border: 1px solid rgba(202, 164, 93, 0.16);
  border-radius: 999px;
  filter: blur(0.1px);
  animation: kwmAuthFloat 9s ease-in-out infinite;
}
.kwm-auth-bg span:nth-child(1) {
  width: 520px;
  height: 520px;
  top: -250px;
  right: -160px;
}
.kwm-auth-bg span:nth-child(2) {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: 5%;
  animation-delay: 1.5s;
}
.kwm-auth-bg span:nth-child(3) {
  width: 180px;
  height: 180px;
  top: 30%;
  left: 12%;
  animation-delay: 2.6s;
}
.kwm-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 380px);
  gap: 26px;
  align-items: stretch;
  max-width: 1160px;
  margin: 160px auto;
}
.kwm-auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.8vw, 46px);
  border: 1px solid var(--kwm-auth-border);
  border-radius: var(--kwm-auth-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(202, 164, 93, 0.1), transparent 30%),
    hsla(0, 0%, 100%, 0.96);
  box-shadow: var(--kwm-auth-shadow);
  backdrop-filter: blur(18px);
}
.kwm-auth-card:before {
  content: "";
  position: absolute;
  inset-inline: 34px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--kwm-auth-gold),
    transparent
  );
}
.kwm-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.kwm-auth-brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(202, 164, 93, 0.32);
  background: linear-gradient(135deg, #fffaf0, #fff);
  color: #a66b00;
  font-weight: 1000;
  box-shadow: 0 14px 34px rgba(202, 164, 93, 0.13);
}
.kwm-auth-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.5;
}
.kwm-auth-brand small {
  display: block;
  color: var(--kwm-auth-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.7;
}
.kwm-auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 34px;
}
.kwm-auth-steps span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 14px;
  font-weight: 950;
  transition: all 0.24s ease;
}
.kwm-auth-steps span.is-active {
  background: linear-gradient(
    135deg,
    var(--kwm-auth-gold),
    var(--kwm-auth-gold-2)
  );
  color: #15100a;
  box-shadow: 0 12px 28px rgba(202, 164, 93, 0.25);
}
.kwm-auth-steps span.is-done {
  background: #101010;
  color: #f3c665;
}
.kwm-auth-steps i {
  display: block;
  width: min(90px, 12vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.55),
    transparent
  );
}
.kwm-auth-panel {
  display: none;
  animation: kwmAuthPanel 0.28s ease both;
}
.kwm-auth-panel.is-active {
  display: block;
}
.kwm-auth-panel h1,
.kwm-auth-panel h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-align: center;
}
.kwm-auth-panel p {
  max-width: 540px;
  margin: 0 auto 26px;
  color: var(--kwm-auth-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 2;
  text-align: center;
}
.kwm-auth-panel form {
  display: grid;
  gap: 15px;
  max-width: 540px;
  margin-inline: auto;
}
.kwm-auth-field {
  display: grid;
  gap: 8px;
  margin: 0;
}
.kwm-auth-field span {
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
}
.kwm-auth-field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 16px;
  background: #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.kwm-auth-field input:focus {
  border-color: rgba(202, 164, 93, 0.64);
  box-shadow: 0 0 0 4px rgba(202, 164, 93, 0.12);
}
.kwm-auth-field input[readonly] {
  background: #f8fafc;
  color: #64748b;
}
.kwm-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.kwm-auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #19130b, #050505);
  color: #f3c665 !important;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(5, 5, 5, 0.14);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.kwm-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(5, 5, 5, 0.22);
  filter: brightness(1.04);
}
.kwm-auth-btn:disabled,
.kwm-auth-btn.is-loading {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}
.kwm-auth-btn.is-loading:after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(243, 198, 101, 0.35);
  border-top-color: #f3c665;
  animation: kwmAuthSpin 0.7s linear infinite;
}
.kwm-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0);
  color: #a66b00;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.kwm-auth-link:hover {
  color: #111;
}
.kwm-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 540px;
  margin: 18px auto;
}
.kwm-auth-divider:before,
.kwm-auth-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(226, 232, 240, 0.96);
}
.kwm-auth-divider span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}
.kwm-auth-row-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 540px;
  margin: 16px auto 0;
}
.kwm-auth-code {
  margin: 8px 0;
}
.kwm-auth-code__hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kwm-auth-code__boxes {
    display: grid;
    grid-template-columns: repeat(var(--kwm-auth-code-length, 5), minmax(0, 1fr));
    gap: 10px;
    width: 50%;
    margin-inline: auto;
    max-width: 100%;
    min-width: 0;
    direction: ltr;
    box-sizing: border-box;
}
.kwm-auth-code__box {
  height: 58px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 16px;
  background: #fff;
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 950;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.kwm-auth-code__box:focus {
  border-color: rgba(202, 164, 93, 0.74);
  box-shadow: 0 0 0 4px rgba(202, 164, 93, 0.13);
}
.kwm-auth-message {
  display: none;
  max-width: 540px;
  margin: 20px auto 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.9;
  text-align: center;
}
.kwm-auth-message.is-success {
  display: block;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: #f0fdf4;
  color: #166534;
}
.kwm-auth-message.is-error {
  display: block;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: #fff1f2;
  color: #b91c1c;
}
.kwm-auth-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  border-radius: var(--kwm-auth-radius);
  border: 1px solid rgba(202, 164, 93, 0.26);
  background:
    radial-gradient(
      circle at 22% 14%,
      rgba(202, 164, 93, 0.28),
      transparent 30%
    ),
    linear-gradient(135deg, #18130c, #050505);
  color: #fff;
  box-shadow: 0 30px 90px rgba(5, 5, 5, 0.22);
}
.kwm-auth-side__glow {
  position: absolute;
  inset: auto -70px -90px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(202, 164, 93, 0.18);
  filter: blur(32px);
}
.kwm-auth-side strong {
  position: relative;
  display: block;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(15px, 1.5vw, 25px);
  font-weight: 950;
  line-height: 1.45;
}
.kwm-auth-side ul {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kwm-auth-side li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsla(0, 0%, 100%, 0.78);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}
.kwm-auth-side li:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--kwm-auth-gold),
    var(--kwm-auth-gold-2)
  );
  box-shadow: 0 0 0 5px rgba(202, 164, 93, 0.11);
}
.kwm-auth-logged {
  display: grid;
  place-items: center;
  padding: 52px 16px;
}
.woocommerce-account:not(.logged-in) .woocommerce {
  width: 100%;
}
.woocommerce-account:not(.logged-in) #customer_login {
  display: none !important;
}
@keyframes kwmAuthPanel {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes kwmAuthSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes kwmAuthFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 16px, 0);
  }
}
@media (max-width: 1024px) {
  .kwm-auth-shell {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
  .kwm-auth-side {
    min-height: auto;
    padding: 28px;
  }
  .kwm-auth-side strong {
    font-size: 24px;
  }
  .kwm-auth-card {
    min-height: auto;
  }
}
@media (max-width: 640px) {
  .kwm-auth-page {
    padding: 22px 10px;
  }
  .kwm-auth-card {
    padding: 22px 14px;
    border-radius: 24px;
  }
  .kwm-auth-brand {
    align-items: flex-start;
  }
  .kwm-auth-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .kwm-auth-steps {
    gap: 8px;
    margin-bottom: 26px;
  }
  .kwm-auth-steps span {
    width: 32px;
    height: 32px;
  }
  .kwm-auth-steps i {
    width: 42px;
  }
  .kwm-auth-panel h1,
  .kwm-auth-panel h2 {
    font-size: 24px;
  }
  .kwm-auth-panel p {
    font-size: 13px;
  }
  .kwm-auth-grid {
    grid-template-columns: 1fr;
  }
  .kwm-auth-field input {
    height: 50px;
    border-radius: 14px;
  }
  .kwm-auth-code__boxes {
    gap: 7px;
  }
  .kwm-auth-code__box {
    height: 50px;
    border-radius: 13px;
    font-size: 19px;
  }
  .kwm-auth-row-links {
    flex-direction: column;
    align-items: center;
  }
  .kwm-auth-side {
    display: none;
  }
}
/* v1.3.15 */
.kwm-auth-field[data-profile-field][hidden] {
  display: none !important;
}
.kwm-auth-field input,
.kwm-auth-field select {
  color: #111827 !important;
  caret-color: #111827;
  -webkit-text-fill-color: #111827;
}
.kwm-auth-field select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  outline: none;
}
.kwm-auth-field input::placeholder {
  color: #94a3b8;
  opacity: 1;
  -webkit-text-fill-color: #94a3b8;
}
.kwm-auth-panel h1,
.kwm-auth-panel h2 {
  color: #0f172a !important;
}
.kwm-auth-page input:not([type="hidden"]),
.kwm-auth-page select {
  color: #111827 !important;
  caret-color: #111827;
  -webkit-text-fill-color: #111827;
}
.kwm-auth-code__box {
  color: #111827 !important;
  -webkit-text-fill-color: #111827;
}

/* KWM Checkout & OTP 1.3.33 — readable headings on every viewport */
.kwm-auth-page .kwm-auth-panel h1,
.kwm-auth-page .kwm-auth-panel h2 {
  color: #0f172a !important;
}

.kwm-auth-page .kwm-auth-panel > p {
  color: #0f172a !important;
}

/* KWM Checkout & OTP 1.3.34 — visual mobile-number validation without native browser balloons. */

/* Noora account design */
.kwm-auth-page--noora {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}
body:has(.kwm-auth-page--noora) .kwm-site-main {
  padding-block: 0;
}
body:has(.kwm-auth-page--noora) {
  overflow-x: hidden;
}
body:has(.kwm-auth-page--noora) .kwm-entry-card {
  padding-block: 0;
  border: 0;
}
body:has(.kwm-auth-page--noora) .kwm-page-header {
  display: none;
}
.kwm-auth-page--noora .kwm-auth-shell {
  width: 100%;
  grid-template-columns: 52% 48%;
}
.kwm-auth-page--noora .kwm-auth-card {
  width: calc(100% - clamp(40px, 8vw, 160px));
  margin-inline: auto;
}
.kwm-auth-page--noora {
  padding: 0;
  min-height: 0;
  background: #fff;
  color: #252a2d;
}
.kwm-auth-page--noora .kwm-auth-bg,
.kwm-auth-page--noora .kwm-auth-side,
.kwm-auth-page--noora .kwm-auth-steps {
  display: none;
}
.kwm-auth-breadcrumb {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  min-height: 74px;
  padding-inline: max(24px, calc((100vw - 1400px) / 2));
  background: #3e3e3e;
  color: #fff;
  font-size: 14px;
}
.kwm-auth-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.kwm-auth-breadcrumb b {
  font-weight: 500;
}
.kwm-auth-shell {
  max-width: none;
  margin: 0;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  direction: ltr;
}
.kwm-auth-page--noora .kwm-auth-card {
  direction: rtl;
  align-self: center;
  margin: clamp(28px, 5vw, 90px) clamp(20px, 5vw, 100px);
  padding: clamp(28px, 4vw, 70px);
  min-height: 620px;
  border: 1px solid #e1e5e7;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.kwm-auth-page--noora .kwm-auth-card:before {
  display: none;
}
.kwm-auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  background: #f4f0ed;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.kwm-auth-visual__halo {
  position: absolute;
  width: min(75%, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  bottom: 5%;
  background: linear-gradient(145deg, #aaa49f, #ddd2c5);
}
.kwm-auth-visual img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 92%;
  max-width: 90%;
  object-fit: contain;
  object-position: bottom;
}
.kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-visual__halo {
  background: linear-gradient(145deg, #c3c6cc, #eaebee);
}
.kwm-auth-intro {
  text-align: right;
  margin-bottom: 45px;
}
.kwm-auth-intro span {
  display: block;
  color: #222;
  font:
    400 clamp(24px, 2.4vw, 46px)/1.2 Poppins,
    Arial,
    sans-serif;
  direction: ltr;
  text-align: left;
}
.kwm-auth-intro span:after {
  content: "";
  display: block;
  width: 85px;
  height: 4px;
  margin: 2px 10px;
  background: #24a9b9;
  border-radius: 10px;
}
.kwm-auth-intro h1 {
  margin: 0 0 10px;
  color: #222;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.35;
  font-weight: 500;
}
.kwm-auth-intro p {
  margin: 0;
  color: #555;
  font-size: 16px;
}
.kwm-auth-page--noora .kwm-auth-panel > h1,
.kwm-auth-page--noora .kwm-auth-panel > h2,
.kwm-auth-page--noora .kwm-auth-panel > p {
  display: none;
}
.kwm-auth-page--noora .kwm-auth-panel form {
  max-width: none;
  gap: 20px;
}
.kwm-auth-page--noora .kwm-auth-field span {
  font-size: 18px;
  color: #414443;
}
.kwm-auth-page--noora .kwm-auth-field input,
.kwm-auth-page--noora .kwm-auth-field select {
  height: 62px;
  border-radius: 10px;
  background: #f5f6f7;
  text-align: right;
  font-weight: 500;
  font-size: 17px;
}
.kwm-auth-page--noora .kwm-auth-btn {
  min-height: 62px;
  border-radius: 10px;
  background: #2a3033;
  color: #fff !important;
  box-shadow: none;
  font-size: 18px;
  
}
.kwm-auth-page--noora .kwm-auth-link {
  color: #16a7b9;
  width: fit-content;
  display: block;
  margin-inline: auto;
  margin-top: 30px;
}
.kwm-auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 24px auto 0;
  padding: 16px 24px;
  border: 1px solid #303638;
  border-radius: 10px;
  color: #303638;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.kwm-auth-page--noora[data-auth-mode="login"]
  [data-auth-step="phone"]
  .kwm-auth-divider {
  display: none;
}
@media (max-width: 1100px) {
  .kwm-auth-page--noora .kwm-auth-card {
    margin: 30px;
    padding: 30px;
    min-height: 0;
  }
  .kwm-auth-shell {
    min-height: 600px;
  }
  .kwm-auth-visual {
    min-height: 600px;
  }
}
@media (max-width: 767px) {
  .kwm-auth-shell {
    display: block;
    min-height: 0;
  }
  .kwm-auth-visual {
    display: none;
  }
  .kwm-auth-breadcrumb {
    min-height: 56px;
    padding-inline: 18px;
  }
  .kwm-auth-page--noora .kwm-auth-card {
    margin: 20px 12px 40px;
    padding: 24px 18px;
  }
  .kwm-auth-intro {
    margin-bottom: 28px;
  }
  .kwm-auth-intro span {
    font-size: 24px;
  }
  .kwm-auth-intro h1 {
    font-size: 30px;
  }
  .kwm-auth-page--noora .kwm-auth-field span {
    font-size: 15px;
  }
  .kwm-auth-page--noora .kwm-auth-field input {
    height: 54px;
    font-size: 15px;
  }
  .kwm-auth-switch {
    font-size: 15px;
  }
  .kwm-auth-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .kwm-auth-page--noora .kwm-auth-shell {
    display: block;
  }
  .kwm-auth-page--noora .kwm-auth-card {
    width: calc(100% - 24px);
    margin: 20px 12px 40px;
  }
}
.kwm-auth-field input[data-auth-mobile-input] {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}
.kwm-auth-field input[data-auth-mobile-input].is-valid,
.kwm-auth-field input[data-auth-mobile-input].is-valid:focus {
  border-color: #16a34a !important;
  background-color: #f7fff9 !important;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12) !important;
}
.kwm-auth-field input[data-auth-mobile-input].is-invalid,
.kwm-auth-field input[data-auth-mobile-input].is-invalid:focus {
  border-color: #dc2626 !important;
  background-color: #fffafa !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.11) !important;
}

/* Let the form determine the two-column height; keep the artwork inside that height. */
.kwm-auth-page--noora .kwm-auth-shell {
  min-height: 0;
}
.kwm-auth-page--noora .kwm-auth-card {
  min-height: 0;
  margin-block: 24px;
}
.kwm-auth-page--noora .kwm-auth-visual {
  min-height: 0;
}
.kwm-auth-page--noora .kwm-auth-visual img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  max-width: 90%;
  object-fit: contain;
  object-position: center bottom;
}

.kwm-auth-page--noora[data-auth-mode="login"] .kwm-auth-visual__halo {
  background: transparent url("../auth-mask.png") center/contain no-repeat;
}
.kwm-auth-promises {
  min-height: 177px;
  padding: 34px max(40px, calc((100% - 1400px) / 2));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1px;
  background: #f1efec;
  direction: rtl;
}
.kwm-auth-promises > div {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border-left: 1px solid #d8d4cf;
}
.kwm-auth-promises > div:last-child {
  border-left: 0;
}
.kwm-auth-promises img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.kwm-auth-promises span {
  display: flex;
  flex-direction: column;
}
.kwm-auth-promises strong {
  font-size: 14px;
  color: #171717;
}
.kwm-auth-promises small {
  font:
    500 8px/1.6 Poppins,
    Arial,
    sans-serif;
  color: #888;
  letter-spacing: 0.08em;
}
@media (max-width: 960px) {
  .kwm-auth-promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kwm-auth-promises > div:nth-child(2) {
    border-left: 0;
  }
}
@media (max-width: 700px) {
  .kwm-auth-promises {
    padding: 24px 14px;
  }
  .kwm-auth-promises > div {
    gap: 10px;
    justify-content: flex-start;
    padding: 12px 8px;
  }
  .kwm-auth-promises img {
    width: 38px;
    height: 38px;
  }
  .kwm-auth-promises strong {
    font-size: 11px;
  }
  .kwm-auth-promises small {
    font-size: 6px;
  }
}
@media (max-width: 420px) {
  .kwm-auth-promises span {
    max-width: 95px;
  }
}

/* Login form layout from the supplied design. */
.kwm-auth-page--noora[data-auth-mode="login"] .kwm-auth-card {
  padding: clamp(32px, 3.4vw, 64px);
}
.kwm-auth-page--noora[data-auth-mode="login"] .kwm-auth-intro {
  margin-bottom: 46px;
}
.kwm-auth-page--noora[data-auth-mode="login"] [data-auth-step="password"] form {
  gap: 26px;
}
.kwm-auth-page--noora[data-auth-mode="login"]
  [data-auth-step="password"]
  .kwm-auth-field {
  gap: 12px;
}
.kwm-auth-page--noora[data-auth-mode="login"] .kwm-auth-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  line-height: 1.4;
  direction: ltr;
}
.kwm-auth-page--noora[data-auth-mode="login"]
  .kwm-auth-field__head
  > span:last-child {
  font-size: 20px;
  font-weight: 400;
  color: #404343;
}
.kwm-auth-page--noora[data-auth-mode="login"]
  .kwm-auth-field__head
  > span[lang="en"] {
  font:
    600 16px/1.4 Poppins,
    Arial,
    sans-serif;
  color: #17243e;
  direction: ltr;
}
.kwm-auth-page--noora[data-auth-mode="login"]
  [data-auth-step="password"]
  .kwm-auth-field
  input {
  height: 68px;
  border: 1px solid #e1e5e7;
  border-radius: 10px;
  background: #f5f6f7;
  color: #303638 !important;
  -webkit-text-fill-color: #303638;
  font-size: 18px;
}
.kwm-auth-page--noora[data-auth-mode="login"]
  [data-auth-step="password"]
  .kwm-auth-field
  input:-webkit-autofill {
  box-shadow: 0 0 0 100px #f5f6f7 inset !important;
  -webkit-text-fill-color: #303638 !important;
}
.kwm-auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 12px;
}
.kwm-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9b9b9b;
  font-size: 18px;
  cursor: pointer;
}
.kwm-auth-remember input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #aeb2b4;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.kwm-auth-remember input:checked {
  border-color: #50c3d3;
  background: #50c3d3;
}
.kwm-auth-remember input:checked:after {
  content: "✓";
  display: block;
  color: #fff;
  text-align: center;
  font:
    700 17px/20px Arial,
    sans-serif;
}
.kwm-auth-page--noora .kwm-auth-login-options .kwm-auth-link {
  font-size: 18px;
  font-weight: 400;
}
.kwm-auth-login-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-btn,
.kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-switch {
  min-height: 70px;
  margin: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-btn span[lang="en"],
.kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-switch span[lang="en"] {
  font:
    600 14px/1.3 Poppins,
    Arial,
    sans-serif;
  direction: ltr;
}
.kwm-auth-login-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  color: #414443;
  font-size: 16px;
}
.kwm-auth-login-bottom .kwm-auth-link {
  font-size: 14px;
}
@media (max-width: 1100px) {
  .kwm-auth-page--noora[data-auth-mode="login"] .kwm-auth-card {
    padding: 30px;
  }
  .kwm-auth-page--noora[data-auth-mode="login"]
    .kwm-auth-field__head
    > span:last-child {
    font-size: 16px;
  }
  .kwm-auth-page--noora[data-auth-mode="login"]
    .kwm-auth-field__head
    > span[lang="en"] {
    font-size: 13px;
  }
  .kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-btn,
  .kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-switch {
    font-size: 14px;
  }
  .kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-btn span[lang="en"],
  .kwm-auth-page--noora
    .kwm-auth-login-actions
    .kwm-auth-switch
    span[lang="en"] {
    font-size: 13px;
  }
  .kwm-auth-page--noora .kwm-auth-login-options .kwm-auth-link,
  .kwm-auth-remember {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .kwm-auth-page--noora[data-auth-mode="login"] .kwm-auth-card {
    padding: 24px 18px;
  }
  .kwm-auth-page--noora[data-auth-mode="login"] .kwm-auth-intro {
    margin-bottom: 30px;
  }
  .kwm-auth-page--noora[data-auth-mode="login"]
    [data-auth-step="password"]
    form {
    gap: 20px;
  }
  .kwm-auth-page--noora[data-auth-mode="login"]
    [data-auth-step="password"]
    .kwm-auth-field
    input {
    height: 54px;
  }
  .kwm-auth-login-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-btn,
  .kwm-auth-page--noora .kwm-auth-login-actions .kwm-auth-switch {
    min-height: 56px;
  }
  .kwm-auth-login-bottom {
    margin-top: 32px;
    flex-wrap: wrap;
    font-size: 13px;
  }
}

/* Registration form and artwork from the supplied design. */
.kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-visual__halo {
  background: transparent url("../register-mask.png") center/contain no-repeat;
}
.kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-card {
  padding: clamp(32px, 3.4vw, 64px);
}
.kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-intro {
  margin-bottom: 42px;
}
.kwm-auth-page--noora[data-auth-mode="register"]
  .kwm-auth-intro
  span[lang="en"] {
  color: #979797;
  font-size: clamp(28px, 2.8vw, 44px);
  font-weight: 700;
}
.kwm-auth-page--noora[data-auth-mode="register"] [data-auth-step="phone"] form {
  gap: 22px;
}
.kwm-auth-page--noora[data-auth-mode="register"]
  [data-auth-step="phone"]
  .kwm-auth-field {
  gap: 12px;
}
.kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  line-height: 1.4;
  direction: ltr;
}
.kwm-auth-page--noora[data-auth-mode="register"]
  .kwm-auth-field__head
  > span:last-child {
  font-size: 20px;
  font-weight: 400;
  color: #404343;
}
.kwm-auth-page--noora[data-auth-mode="register"]
  .kwm-auth-field__head
  > span[lang="en"] {
  font:
    600 16px/1.4 Poppins,
    Arial,
    sans-serif;
  color: #17243e;
  direction: ltr;
}
.kwm-auth-page--noora[data-auth-mode="register"]
  [data-auth-step="phone"]
  .kwm-auth-field
  input {
  height: 68px;
  border: 1px solid #e1e5e7;
  border-radius: 10px;
  background: #f5f6f7;
  color: #303638 !important;
  -webkit-text-fill-color: #303638;
  font-size: 18px;
}
.kwm-auth-page--noora[data-auth-mode="register"]
  [data-auth-step="phone"]
  .kwm-auth-field
  input:-webkit-autofill {
  box-shadow: 0 0 0 100px #f5f6f7 inset !important;
  -webkit-text-fill-color: #303638 !important;
}
.kwm-auth-terms {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
  color: #9b9b9b;
  font-size: 17px;
  line-height: 1.7;
  cursor: pointer;
}
.kwm-auth-terms input {
  appearance: none;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #aeb2b4;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.kwm-auth-terms input:checked {
  border-color: #50c3d3;
  background: #50c3d3;
}
.kwm-auth-terms input:checked:after {
  content: "✓";
  display: block;
  color: #fff;
  text-align: center;
  font:
    700 17px/20px Arial,
    sans-serif;
}
.kwm-auth-register-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.kwm-auth-page--noora .kwm-auth-register-actions .kwm-auth-btn,
.kwm-auth-page--noora .kwm-auth-register-actions .kwm-auth-switch {
  min-height: 70px;
  margin: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.kwm-auth-page--noora .kwm-auth-register-actions .kwm-auth-btn span[lang="en"],
.kwm-auth-page--noora
  .kwm-auth-register-actions
  .kwm-auth-switch
  span[lang="en"] {
  font:
    600 14px/1.3 Poppins,
    Arial,
    sans-serif;
  direction: ltr;
}
@media (max-width: 1100px) {
  .kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-card {
    padding: 30px;
  }
  .kwm-auth-page--noora[data-auth-mode="register"]
    .kwm-auth-field__head
    > span:last-child {
    font-size: 16px;
  }
  .kwm-auth-page--noora[data-auth-mode="register"]
    .kwm-auth-field__head
    > span[lang="en"] {
    font-size: 13px;
  }
  .kwm-auth-terms {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-card {
    padding: 24px 18px;
  }
  .kwm-auth-page--noora[data-auth-mode="register"] .kwm-auth-intro {
    margin-bottom: 30px;
  }
  .kwm-auth-page--noora[data-auth-mode="register"]
    .kwm-auth-intro
    span[lang="en"] {
    font-size: 25px;
  }
  .kwm-auth-page--noora[data-auth-mode="register"]
    [data-auth-step="phone"]
    form {
    gap: 20px;
  }
  .kwm-auth-page--noora[data-auth-mode="register"]
    [data-auth-step="phone"]
    .kwm-auth-field
    input {
    height: 54px;
  }
  .kwm-auth-register-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kwm-auth-page--noora .kwm-auth-register-actions .kwm-auth-btn,
  .kwm-auth-page--noora .kwm-auth-register-actions .kwm-auth-switch {
    min-height: 56px;
  }
  .kwm-auth-terms {
    font-size: 13px;
  }
}

/* Keep desktop artwork at a consistent height as auth steps change. */
@media (min-width: 768px) {
  .kwm-auth-page--noora .kwm-auth-shell {
    background: linear-gradient(90deg, #f4f0ed 52%, #fff 52%);
  }
  .kwm-auth-page--noora .kwm-auth-visual {
    height: 780px;
    align-self: center;
  }
  .kwm-auth-page--noora .kwm-auth-card {
    align-self: center;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .kwm-auth-page--noora .kwm-auth-visual {
    height: 700px;
  }
}

/* Verification step: readable, stable OTP layout on desktop and mobile. */
.kwm-auth-page--noora[data-auth-current="verify"] .kwm-auth-intro,
.kwm-auth-page--noora[data-auth-current="forgot-verify"] .kwm-auth-intro {
  display: none;
}
.kwm-auth-page--noora [data-auth-step="verify"],
.kwm-auth-page--noora [data-auth-step="forgot-verify"] {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}
.kwm-auth-page--noora [data-auth-step="verify"].is-active > h2,
.kwm-auth-page--noora [data-auth-step="verify"].is-active > p,
.kwm-auth-page--noora [data-auth-step="forgot-verify"].is-active > h2,
.kwm-auth-page--noora [data-auth-step="forgot-verify"].is-active > p {
  display: flex;
}
.kwm-auth-page--noora [data-auth-step="verify"] > h2,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] > h2 {
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  color: #202629 !important;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 750;
  line-height: 1.45;
}
.kwm-auth-page--noora .kwm-auth-verify-copy,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] > p {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 28px;
  color: #687176 !important;
  font-size: 14px;
  line-height: 1.9;
}
.kwm-auth-page--noora .kwm-auth-verify-copy strong {
  direction: ltr;
  color: #202629;
  font-size: 16px;
  font-weight: 800;
  unicode-bidi: isolate;
}
.kwm-auth-page--noora .kwm-auth-verify-copy .kwm-auth-link,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] > p .kwm-auth-link {
  display: inline-flex;
  width: auto;
  margin: 0 4px 0 0;
  color: #168fa1;
  font-size: 13px;
}
.kwm-auth-page--noora [data-auth-step="verify"] form,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] form {
  gap: 22px;
}
.kwm-auth-page--noora [data-auth-step="verify"] .kwm-auth-code,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] .kwm-auth-code {
  width: 100%;
  margin: 0;
}
.kwm-auth-page--noora [data-auth-step="verify"] .kwm-auth-code__boxes,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] .kwm-auth-code__boxes {
  width: min(100%, 440px);
  margin-inline: auto;
  gap: 10px;
}
.kwm-auth-page--noora [data-auth-step="verify"] .kwm-auth-code__box,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] .kwm-auth-code__box {
  width: 100% !important;
  min-width: 0;
  height: 68px;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #dce2e5;
  border-radius: 14px;
  background: #f8fafb;
  color: #202629 !important;
  -webkit-text-fill-color: #202629 !important;
  caret-color: #168fa1;
  direction: ltr;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  opacity: 1;
  box-shadow: inset 0 1px 2px rgba(32, 38, 41, 0.03);
}
.kwm-auth-page--noora [data-auth-step="verify"] .kwm-auth-code__box:hover,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] .kwm-auth-code__box:hover {
  border-color: #aebbc0;
}
.kwm-auth-page--noora [data-auth-step="verify"] .kwm-auth-code__box:focus,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] .kwm-auth-code__box:focus {
  border-color: #24a9b9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 169, 185, 0.13);
}
.kwm-auth-page--noora [data-auth-step="verify"] form > .kwm-auth-btn,
.kwm-auth-page--noora [data-auth-step="forgot-verify"] form > .kwm-auth-btn {
  width: min(100%, 520px);
  min-height: 60px;
  margin: 2px auto 0;
}
.kwm-auth-page--noora [data-auth-step="verify"] > [data-auth-action="resend"] {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  margin: 18px auto 0;
  padding: 0 12px;
}
@media (max-width: 600px) {
  .kwm-auth-page--noora[data-auth-current="verify"] .kwm-auth-card,
  .kwm-auth-page--noora[data-auth-current="forgot-verify"] .kwm-auth-card {
    padding: 28px 16px;
  }
  .kwm-auth-page--noora [data-auth-step="verify"] > h2,
  .kwm-auth-page--noora [data-auth-step="forgot-verify"] > h2 {
    margin-bottom: 10px;
    font-size: 24px;
  }
  .kwm-auth-page--noora .kwm-auth-verify-copy,
  .kwm-auth-page--noora [data-auth-step="forgot-verify"] > p {
    margin-bottom: 22px;
    font-size: 13px;
  }
  .kwm-auth-page--noora [data-auth-step="verify"] form,
  .kwm-auth-page--noora [data-auth-step="forgot-verify"] form {
    gap: 18px;
  }
  .kwm-auth-page--noora [data-auth-step="verify"] .kwm-auth-code__boxes,
  .kwm-auth-page--noora [data-auth-step="forgot-verify"] .kwm-auth-code__boxes {
    width: 100%;
    gap: 6px;
  }
  .kwm-auth-page--noora [data-auth-step="verify"] .kwm-auth-code__box,
  .kwm-auth-page--noora [data-auth-step="forgot-verify"] .kwm-auth-code__box {
    height: 56px;
    border-width: 1.5px;
    border-radius: 11px;
    font-size: clamp(18px, 6vw, 23px);
  }
  .kwm-auth-page--noora [data-auth-step="verify"] form > .kwm-auth-btn,
  .kwm-auth-page--noora [data-auth-step="forgot-verify"] form > .kwm-auth-btn {
    min-height: 56px;
    font-size: 16px;
  }
}
