/* Maison ARE — Members' entrance (Light Theme). Shared by login.php and register.php (.pg-entrance) and their stepped modals (.pg-step-modal). */

/* ---------- Frame ---------- */

html body.are-lux .pg-entrance {
  display: block;
  padding-block: calc(var(--m-header-h, 104px) + 36px) 88px;
  background: #f8fafc;
}

html body.are-lux .pg-entrance__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: min(720px, calc(100vh - var(--m-header-h, 104px) - 96px));
  border: 1px solid #e5e7eb;
  border-radius: var(--m-r-2);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ---------- Brand side ---------- */

html body.are-lux .pg-entrance__brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 48px clamp(28px, 4.2vw, 64px);
  overflow: hidden;
  border-inline-end: 1px solid #e5e7eb;
  background: #fbfbfd;
}

html body.are-lux .pg-entrance__mark {
  position: absolute;
  z-index: -1;
  inset-inline-end: -14%;
  bottom: -12%;
  width: 82%;
  max-width: 560px;
  height: auto;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

html body.are-lux .pg-entrance__top {
  display: grid;
  gap: 28px;
}

html body.are-lux .pg-entrance__top .m-kicker {
  color: #000000 !important;
  font-weight: 700;
}

html body.are-lux .pg-entrance__trail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html body.are-lux .pg-entrance__trail li,
html body.are-lux .pg-entrance__trail a {
  color: #6b7280 !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

html body.are-lux .pg-entrance__trail li + li::before {
  content: "/";
  margin-inline-end: 10px;
  color: #d1d5db;
}

html body.are-lux .pg-entrance__trail a:hover {
  color: #000000 !important;
}

html[dir="rtl"] body.are-lux .pg-entrance__trail li,
html[dir="rtl"] body.are-lux .pg-entrance__trail a {
  letter-spacing: 0;
  font-size: 13px;
}

html body.are-lux .pg-entrance__statement {
  display: grid;
  gap: 22px;
}

html body.are-lux .pg-entrance__line {
  max-width: 12ch;
  font-size: clamp(38px, 4.4vw, 60px) !important;
  line-height: 1.15 !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

html[dir="rtl"] body.are-lux .pg-entrance__line {
  max-width: 14ch;
  font-size: clamp(32px, 3.8vw, 48px) !important;
  line-height: 1.35 !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

html body.are-lux .pg-entrance__line em {
  font-style: normal;
  color: #000000 !important;
}

html body.are-lux .pg-entrance__lead {
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563 !important;
}

html body.are-lux .pg-entrance__notes {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e5e7eb;
}

html body.are-lux .pg-entrance__notes li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

html body.are-lux .pg-entrance__notes .m-chapter-num {
  min-width: 26px;
  font-size: 17px;
  font-weight: 700;
  color: #000000 !important;
}

html body.are-lux .pg-entrance__notes .m-caption {
  color: #374151 !important;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Form side ---------- */

html body.are-lux .pg-entrance__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(24px, 4vw, 64px);
  background: #ffffff;
}

html body.are-lux .pg-entrance__form-wrap {
  width: 100%;
  max-width: 420px;
}

html body.are-lux .pg-entrance__head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
  text-align: start;
}

html body.are-lux .pg-entrance__title {
  margin: 0 !important;
  font-size: clamp(28px, 2.6vw, 36px) !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

html body.are-lux .pg-entrance__desc {
  margin: 0;
  color: #6b7280 !important;
  font-size: 14px;
  line-height: 1.6;
}

html body.are-lux .pg-entrance__form {
  display: grid;
  gap: 20px;
  text-align: start;
}

html body.are-lux .pg-entrance__form #loginMessage,
html body.are-lux .pg-entrance__form #registerMessage {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 8px;
}

/* ---------- Fields ---------- */

html body.are-lux .pg-entrance .m-label,
html body.are-lux .pg-step-modal .m-label {
  margin: 0;
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
}

html[dir="rtl"] body.are-lux .pg-entrance .m-label,
html[dir="rtl"] body.are-lux .pg-step-modal .m-label {
  font-size: 13px !important;
  letter-spacing: 0;
}

html body.are-lux .pg-entrance .m-input,
html body.are-lux .pg-step-modal .m-input {
  width: 100% !important;
  min-height: 48px;
  padding: 12px 16px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  text-align: start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

html body.are-lux .pg-entrance .m-input::placeholder,
html body.are-lux .pg-step-modal .m-input::placeholder {
  color: #9ca3af !important;
}

html body.are-lux .pg-entrance .m-input:focus,
html body.are-lux .pg-step-modal .m-input:focus {
  border-color: #000000 !important;
  box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.16) !important;
  background: #ffffff !important;
  outline: none;
}

html body.are-lux .pg-entrance .m-input.is-invalid,
html body.are-lux .pg-step-modal .m-input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

html[dir="rtl"] body.are-lux .pg-entrance .pg-ltr,
html[dir="rtl"] body.are-lux .pg-step-modal .pg-ltr {
  text-align: right;
}

html body.are-lux .pg-entrance .error-message,
html body.are-lux .pg-step-modal .error-message {
  display: block;
  margin: 0;
  color: #dc2626 !important;
  font-size: 13px;
}

html body.are-lux .pg-secret {
  display: grid;
  gap: 8px;
}

html body.are-lux .pg-secret__control {
  position: relative;
  width: 100%;
  display: block;
}

html body.are-lux .pg-secret .m-input {
  padding-inline-end: 48px !important;
}

html body.are-lux .pg-secret .password-toggle {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  inset-inline-end: 8px !important;
  inset-inline-start: auto !important;
  z-index: 3;
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  margin-block: auto !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  transform: none !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer;
  /* Centered SVG eye — avoids Font Awesome glyph baseline offset */
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 20px 20px !important;
  transition: opacity var(--m-dur) var(--m-ease);
}

html body.are-lux .pg-secret .password-toggle.fa-eye-slash {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") !important;
}

html[dir="rtl"] body.are-lux .pg-secret .password-toggle {
  left: 8px !important;
  right: auto !important;
}

html[dir="ltr"] body.are-lux .pg-secret .password-toggle {
  right: 8px !important;
  left: auto !important;
}

html body.are-lux .pg-secret .password-toggle::before {
  content: none !important;
  display: none !important;
}

html body.are-lux .pg-secret .password-toggle:hover {
  opacity: 0.75;
}

html body.are-lux .pg-entrance__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

html body.are-lux .pg-entrance .forget-pwd {
  color: #000000 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: color var(--m-dur) var(--m-ease);
}

html body.are-lux .pg-entrance .forget-pwd:hover,
html body.are-lux .pg-entrance .forget-pwd:focus-visible {
  color: #5e35b1 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

html body.are-lux .pg-entrance__submit {
  height: 50px;
  margin-top: 4px;
  border-radius: 10px !important;
  background: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  box-shadow: 0 4px 14px rgba(126, 87, 194, 0.28) !important;
  cursor: pointer;
  transition: all .2s ease !important;
}

html body.are-lux .pg-entrance__submit:hover {
  background: #6a42b0 !important;
  box-shadow: 0 6px 18px rgba(126, 87, 194, 0.38) !important;
  transform: translateY(-1px);
}

html body.are-lux .pg-entrance__submit:disabled {
  opacity: 0.55;
  pointer-events: none;
}

html body.are-lux .pg-entrance__submit #loginBtnLoader,
html body.are-lux .pg-entrance__submit #registerBtnLoader {
  align-items: center;
  gap: 8px;
}

html body.are-lux .pg-entrance__alt {
  margin: 6px 0 0;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  color: #6b7280 !important;
  font-size: 14px;
  text-align: start;
}

html body.are-lux .pg-entrance__alt a {
  margin-inline-start: 4px;
  color: #000000 !important;
  font-weight: 700;
  text-decoration: none;
}

html body.are-lux .pg-entrance__alt a:hover {
  color: #5e35b1 !important;
  text-decoration: underline;
}

/* ---------- Stepped modals ---------- */

html body.are-lux .pg-step-modal .modal-dialog {
  max-width: 460px !important;
  margin-inline: auto;
}

html body.are-lux .pg-step-modal .modal-content.pg-step {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
  color: #111827 !important;
}

html body.are-lux .pg-step-modal .modal-body.pg-step__body {
  display: grid;
  gap: 12px;
  padding: 36px 36px 30px !important;
  text-align: start;
}

html body.are-lux .modal.pg-step-modal .close.close-button.pg-step__close {
  position: absolute !important;
  top: 14px !important;
  right: auto !important;
  left: auto !important;
  inset-inline-end: 14px !important;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  color: #6b7280 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  transition: border-color var(--m-dur) var(--m-ease), color var(--m-dur) var(--m-ease);
}

html body.are-lux .modal.pg-step-modal .close.close-button.pg-step__close:hover {
  border-color: #000000 !important;
  color: #000000 !important;
}

html body.are-lux .pg-step-modal .pg-step__close .close-icon {
  font-size: 20px;
  line-height: 1;
}

html body.are-lux .pg-step__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  margin-inline-end: 48px;
  margin-bottom: 8px;
}

html body.are-lux .pg-step__rail i {
  display: block;
  height: 2px;
  background: #e5e7eb;
}

html body.are-lux .pg-step__rail i.is-on {
  background: #000000;
}

html body.are-lux .pg-step__count {
  color: #000000 !important;
  font-weight: 700;
}

html body.are-lux .pg-step-modal .pg-step__title {
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  color: #111827 !important;
}

html[dir="rtl"] body.are-lux .pg-step-modal .pg-step__title {
  font-size: 22px !important;
  line-height: 1.4;
}

html body.are-lux .pg-step__lead {
  margin: 0 0 12px;
  color: #4b5563 !important;
  font-size: 14px;
  line-height: 1.65;
}

html body.are-lux .pg-step-modal form {
  display: grid;
  gap: 18px;
}

html body.are-lux .pg-step-modal .alert {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 8px;
}

html body.are-lux .pg-step__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

html body.are-lux .pg-step__actions .m-btn--quiet {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-weight: 600;
}

html body.are-lux .pg-step__actions .m-btn--quiet:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}

html body.are-lux .pg-step__actions .m-btn--primary {
  min-width: 140px;
  background: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(126, 87, 194, 0.25) !important;
}

html body.are-lux .pg-step__actions .m-btn--primary:hover {
  background: #6a42b0 !important;
}

html body.are-lux .pg-step__actions .m-btn:disabled {
  opacity: 0.55;
}

/* Single 6-digit input drawn as six slots */
html body.are-lux .pg-step__otp-field {
  justify-items: center;
}

html body.are-lux .pg-step__otp-field .m-label {
  justify-self: stretch;
}

html body.are-lux .pg-step-modal .m-otp,
html body.are-lux .pg-step-modal .m-otp:focus {
  --otp-slot: 44px;
  --otp-pitch: 56px;
  width: calc(var(--otp-pitch) * 6 + 16px) !important;
  max-width: 100%;
  height: 64px;
  padding: 0 0 0 calc((var(--otp-slot) - 1ch) / 2) !important;
  border: 0 !important;
  border-radius: var(--m-r-1) !important;
  background-color: transparent !important;
  background-image: repeating-linear-gradient(90deg, #f3f4f6 0 var(--otp-slot), transparent var(--otp-slot) var(--otp-pitch)) !important;
  background-size: calc(var(--otp-pitch) * 6 - (var(--otp-pitch) - var(--otp-slot))) 100% !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  color: #111827 !important;
  direction: ltr;
  text-align: left !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 26px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: calc(var(--otp-pitch) - 1ch) !important;
  box-shadow: none !important;
}

html body.are-lux .pg-step-modal .m-otp:focus {
  outline: 2px solid #000000 !important;
  outline-offset: 2px;
}

html body.are-lux .pg-step-modal .m-otp.is-invalid {
  outline: 2px solid #ef4444 !important;
  outline-offset: 2px;
}

html body.are-lux .pg-step-modal .m-otp::placeholder {
  color: transparent !important;
}

html body.are-lux .pg-step__otp-field .error-message {
  justify-self: stretch;
}

html body.are-lux .pg-step__test {
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed #d1d5db;
  border-radius: var(--m-r-1);
}

html body.are-lux .pg-step__test-code {
  margin: 4px 0 0;
  color: #000000;
  font-size: 20px;
  letter-spacing: 0.3em;
  direction: ltr;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 991px) {
  html body.are-lux .pg-entrance {
    padding-block: calc(var(--m-header-h, 88px) + 20px) 56px;
  }

  html body.are-lux .pg-entrance__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  html body.are-lux .pg-entrance__brand {
    gap: 28px;
    padding: 32px 24px 28px;
    border-inline-end: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  html body.are-lux .pg-entrance__mark {
    width: 60%;
    bottom: -30%;
  }

  html body.are-lux .pg-entrance__line {
    font-size: clamp(30px, 7vw, 42px) !important;
  }

  html[dir="rtl"] body.are-lux .pg-entrance__line {
    font-size: clamp(28px, 6.5vw, 38px) !important;
  }

  html body.are-lux .pg-entrance__lead {
    font-size: 15px;
  }

  html body.are-lux .pg-entrance__notes {
    display: none;
  }

  html body.are-lux .pg-entrance__panel {
    padding: 36px 24px 40px;
  }
}

@media (max-width: 479px) {
  html body.are-lux .pg-entrance .m-container {
    width: 100%;
  }

  html body.are-lux .pg-entrance__grid {
    border-inline: 0;
    border-radius: 0;
  }

  html body.are-lux .pg-step-modal .modal-body.pg-step__body {
    padding: 30px 22px 24px !important;
  }

  html body.are-lux .pg-step-modal .m-otp,
  html body.are-lux .pg-step-modal .m-otp:focus {
    --otp-slot: 38px;
    --otp-pitch: 48px;
    font-size: 22px !important;
  }

  html body.are-lux .pg-step__actions .m-btn--primary {
    min-width: 0;
    flex: 1;
  }
}
