/* =========================================================
   Noor Shop - Storefront authentication
   ========================================================= */
.ns-auth {
  position: relative;
  padding: 68px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(720px 300px at 0 0, rgba(136, 147, 70, 0.1), transparent 58%),
    radial-gradient(560px 260px at 100% 100%, rgba(42, 74, 17, 0.07), transparent 60%),
    #f7f9f8;
}

.ns-auth__shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(7, 28, 31, 0.07);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 28, 31, 0.11);
}

.ns-auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 610px;
  padding: clamp(34px, 5vw, 54px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(420px 240px at 100% 0, rgba(197, 207, 138, 0.2), transparent 62%),
    linear-gradient(145deg, #071c1f 0%, #133236 56%, #2a4a11 125%);
}

.ns-auth__aside::after {
  content: "";
  position: absolute;
  inset-inline-end: -76px;
  bottom: -76px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 255, 255, 0.025),
    0 0 0 76px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.ns-auth__aside-copy,
.ns-auth__trust {
  position: relative;
  z-index: 1;
}

.ns-auth__aside-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #c5cf8a;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  backdrop-filter: blur(8px);
}

.ns-auth__aside-eyebrow {
  margin: 0 0 12px;
  color: #c5cf8a;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="ar"] .ns-auth__aside-eyebrow,
html[dir="rtl"] .ns-auth__aside-eyebrow {
  letter-spacing: 0;
}

.ns-auth__aside-title {
  margin: 0 0 16px;
  color: #fff !important;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.16;
}

.ns-auth__aside-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.8;
}

.ns-auth__trust {
  display: grid;
  gap: 13px;
  margin-top: 44px;
}

.ns-auth__trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 600;
}

.ns-auth__trust-item i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #c5cf8a;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.ns-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 66px);
}

.ns-auth__heading {
  margin-bottom: 30px;
}

.ns-auth__heading-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--ns-green-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[lang="ar"] .ns-auth__heading-eyebrow,
html[dir="rtl"] .ns-auth__heading-eyebrow {
  letter-spacing: 0;
}

.ns-auth__heading-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ns-green-soft), var(--ns-green));
}

.ns-auth__title {
  margin: 0 0 10px;
  color: var(--ns-ink);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.ns-auth__lead {
  margin: 0;
  color: var(--ns-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ns-auth__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.ns-auth__alert--error {
  color: #972f2f;
  border: 1px solid rgba(151, 47, 47, 0.16);
  background: rgba(151, 47, 47, 0.07);
}

.ns-auth__alert--success {
  color: var(--ns-green);
  border: 1px solid rgba(42, 74, 17, 0.16);
  background: rgba(42, 74, 17, 0.07);
}

.ns-auth__form {
  display: grid;
  gap: 18px;
  margin: 0;
}

.ns-auth__shell--register {
  grid-template-columns: minmax(290px, 0.72fr) minmax(500px, 1.28fr);
  max-width: 1120px;
}

.ns-auth__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ns-auth__field--full {
  grid-column: 1 / -1;
}

.ns-auth__field {
  display: grid;
  gap: 8px;
}

.ns-auth__label {
  margin: 0;
  color: var(--ns-ink);
  font-size: 13px;
  font-weight: 700;
}

.ns-auth__input-wrap {
  position: relative;
}

.ns-auth__input-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 16px;
  z-index: 1;
  color: #8b999b;
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

form.ns-auth__form input.ns-auth__input {
  width: 100%;
  min-height: 54px;
  height: 54px !important;
  margin: 0 !important;
  padding: 0 48px !important;
  border: 1px solid rgba(7, 28, 31, 0.12) !important;
  border-radius: 13px !important;
  color: var(--ns-ink);
  background: #f8faf9 !important;
  box-shadow: none;
  font-size: 14px !important;
  letter-spacing: normal !important;
  line-height: 1.4;
  text-align: start;
  outline: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

form.ns-auth__form input.ns-auth__input::placeholder {
  color: #9aa5a7;
  font-size: 13px;
  letter-spacing: normal;
  opacity: 1;
}

form.ns-auth__form input.ns-auth__input:focus {
  border-color: rgba(136, 147, 70, 0.68) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(136, 147, 70, 0.12) !important;
}

form.ns-auth__form input.ns-auth__input.is-invalid {
  border-color: rgba(151, 47, 47, 0.55) !important;
}

.ns-auth__password-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 9px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: var(--ns-muted);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.ns-auth__password-toggle:hover {
  color: var(--ns-green);
  background: rgba(136, 147, 70, 0.09);
}

.ns-auth__error {
  color: #972f2f;
  font-size: 12px;
  font-weight: 600;
}

.ns-auth__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ns-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ns-muted);
  font-size: 13px;
  cursor: pointer;
}

.ns-auth__remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ns-green);
}

.ns-auth__forgot {
  color: var(--ns-green) !important;
  font-size: 13px;
  font-weight: 700;
}

.ns-auth__forgot:hover {
  text-decoration: underline !important;
}

.ns-auth__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ns-muted);
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
}

.ns-auth__consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 2px 0 0;
  accent-color: var(--ns-green);
}

.ns-auth__consent a {
  color: var(--ns-green) !important;
  font-weight: 700;
}

.ns-auth__consent a:hover {
  text-decoration: underline !important;
}

.ns-auth__submit {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #2a4a11 0%, #456724 100%);
  box-shadow: 0 10px 24px rgba(42, 74, 17, 0.23);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ns-auth__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(42, 74, 17, 0.29);
  filter: brightness(1.04);
}

.ns-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 20px;
  color: #8b999b;
  font-size: 12px;
  font-weight: 600;
}

.ns-auth__divider::before,
.ns-auth__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--ns-line);
}

.ns-auth__register {
  margin: 0;
  color: var(--ns-muted);
  text-align: center;
  font-size: 13px;
}

.ns-auth__register a {
  margin-inline-start: 4px;
  color: var(--ns-green) !important;
  font-weight: 750;
}

.ns-auth__register a:hover {
  text-decoration: underline !important;
}

@media (max-width: 991px) {
  .ns-auth {
    padding: 48px 0 70px;
  }

  .ns-auth__shell {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .ns-auth__shell--register {
    max-width: 760px;
  }

  .ns-auth__aside {
    min-height: auto;
    padding: 36px;
  }

  .ns-auth__trust {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
  }
}

@media (max-width: 575px) {
  .ns-auth {
    padding: 28px 0 48px;
  }

  .ns-auth__shell {
    border-radius: 18px;
  }

  .ns-auth__aside {
    padding: 28px 24px;
  }

  .ns-auth__aside-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }

  .ns-auth__trust {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .ns-auth__panel {
    padding: 32px 22px 36px;
  }

  .ns-auth__fields {
    grid-template-columns: 1fr;
  }

  .ns-auth__field--full {
    grid-column: auto;
  }

  .ns-auth__options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
