/*
 * LUXEN88 REGISTER UI MATCH V1
 * Uses the existing auth modal frame and original RegisterView class family.
 * This file intentionally does NOT create a second full-screen blue modal.
 */

#luxen88-register-overlay {
  display: none !important;
}

#register-page.luxen88-register-runtime {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  color: #fff;
}

#register-page .wrap-register-page,
#register-page .wrap-theme-box,
#register-page .inner-theme-box,
#register-page .wrap-form-register-page {
  width: 100%;
}

#register-page .wrap-form-register-page {
  padding: 0;
}

#register-page .box-logo-register-page {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px auto 8px;
}

#register-page .box-logo-register-page img {
  display: block;
  width: min(190px, 58%);
  height: auto;
  object-fit: contain;
}

#register-page .title-register-page {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 700;
}

#register-page .luxreg-original-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 3px 0 10px;
}

#register-page .luxreg-original-step {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}

#register-page .luxreg-original-step.is-active {
  background: linear-gradient(
    180deg,
    var(--theme-color-1, #f2d638) 1.76%,
    var(--theme-color-2, #e9b033) 87.37%
  );
}

#register-page .step-description {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 0 17px;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  color: rgba(255,255,255,.72);
}

#register-page .step-description span.is-active {
  color: var(--primary-color-1, #e9b033);
  font-weight: 700;
}

#register-page .luxreg-panel[hidden] {
  display: none !important;
}

#register-page .luxreg-field {
  margin-bottom: 12px;
}

#register-page .luxreg-label {
  display: block;
  margin: 0 2px 5px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.35;
}

#register-page .luxreg-input-wrap {
  position: relative;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  background: #010600b8;
  border: 1px solid transparent;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#register-page .luxreg-input-wrap:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
}

#register-page .luxreg-input,
#register-page .luxreg-select {
  width: 100%;
  height: 40px;
  border: 0;
  outline: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 40px;
}

#register-page .luxreg-input::placeholder {
  color: rgba(194,194,194,1);
}

#register-page .luxreg-select {
  appearance: auto;
  cursor: pointer;
}

#register-page .luxreg-select option {
  color: #111;
  background: #fff;
}

#register-page .luxreg-note {
  margin: 2px 2px 12px;
  color: rgba(255,255,255,.58);
  font-size: 11px;
  line-height: 1.5;
}

#register-page .luxreg-message {
  display: none;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

#register-page .luxreg-message.is-error {
  display: block;
  background: rgba(208,48,80,.14);
  border: 1px solid rgba(208,48,80,.55);
  color: #ffd1da;
}

#register-page .luxreg-message.is-success {
  display: block;
  background: rgba(24,160,88,.16);
  border: 1px solid rgba(24,160,88,.55);
  color: #c9f7dc;
}

#register-page .luxreg-action-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
}

#register-page .luxreg-action-row .n-button {
  flex: 1 1 0;
  min-width: 0;
}

#register-page .luxreg-runtime-button {
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid rgb(224,224,230);
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

#register-page .luxreg-runtime-button.primary-button {
  color: #fff;
}

#register-page .luxreg-runtime-button.secondary-button {
  color: #fff;
  background: transparent;
  border-color: var(--primary-color-1, #e9b033);
}

#register-page .luxreg-runtime-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#register-page .luxreg-terms {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 11px 2px 0;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.45;
}

#register-page .luxreg-terms input {
  margin-top: 3px;
  accent-color: var(--primary-color-1, #e9b033);
}

#register-page .luxreg-login-return,
#register-page .luxreg-support {
  margin: 17px 0 2px;
  text-align: center;
  color: #fff;
  font-size: 13px;
}

#register-page .luxreg-login-return button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--primary-color-1, #e9b033);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

#register-page .luxreg-bank-warning {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #151515;
  color: #f1c40f;
  font-size: 11px;
  line-height: 1.45;
}

/* Register shares the outer Login modal; no nested scroll container. */
#custom-modal .luxen88-register-runtime {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  scrollbar-width: none !important;
}

@media (max-width: 600px) {
  #register-page .box-logo-register-page img {
    width: min(170px, 55%);
  }

  #register-page .title-register-page {
    font-size: 1.4rem;
  }

  #register-page .step-description {
    font-size: 10px;
  }

  #custom-modal .luxen88-register-runtime {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* LUXEN88 REGISTER BANK LOGOS V1 — cloned bank selector visuals */
#register-page .luxreg-bank-selector {
  position: relative;
  width: 100%;
}

#register-page .luxreg-bank-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 12px;
  padding: 5px 10px;
  background: #010600b8;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

#register-page .luxreg-bank-toggle:focus,
#register-page .luxreg-bank-selector.is-open .luxreg-bank-toggle {
  outline: 0;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

#register-page .luxreg-bank-selected-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

#register-page .luxreg-bank-selected-logo,
#register-page .luxreg-bank-option-logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
}

#register-page .luxreg-bank-selected-logo[hidden] {
  display: none !important;
}

#register-page .luxreg-bank-arrow {
  flex: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: transform .15s ease;
}

#register-page .luxreg-bank-selector.is-open .luxreg-bank-arrow {
  transform: rotate(180deg);
}

#register-page .luxreg-bank-list {
  position: absolute;
  z-index: 100002;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: min(330px, 44vh);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 14px 32px rgba(0,0,0,.42);
}

#register-page .luxreg-bank-list[hidden] {
  display: none !important;
}

#register-page .luxreg-bank-option {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  padding: 5px 9px;
  background: transparent;
  color: #111;
  cursor: pointer;
  text-align: left;
}

#register-page .luxreg-bank-option:hover,
#register-page .luxreg-bank-option:focus,
#register-page .luxreg-bank-option.is-selected {
  outline: 0;
  background: #e8e8e8;
}

#register-page .luxreg-bank-option-logo-wrap {
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
}

#register-page .luxreg-bank-option-name {
  min-width: 0;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

#register-page .luxreg-bank-loading {
  padding: 12px;
  color: #333;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  #register-page .luxreg-bank-list {
    max-height: 300px;
  }

  #register-page .luxreg-bank-option {
    min-height: 46px;
  }

  #register-page .luxreg-bank-selected-logo,
  #register-page .luxreg-bank-option-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}



/* SINGLE FRAME: the outer #custom-modal is the only modal frame. */
#register-page .wrap-register-page,
#register-page .wrap-form-register-page {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

#register-page .wrap-theme-box,
#register-page .inner-theme-box {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Do not create a second vertical scroll area inside Register. */
#custom-modal .luxen88-register-runtime {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
  scrollbar-width: none !important;
}

#custom-modal .luxen88-register-runtime::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Keep the preferred dropdown behavior, but hide its visible scrollbar. */
#register-page .luxreg-bank-list {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#register-page .luxreg-bank-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Prevent the original RegisterView position rules from lifting/cropping the top. */
#custom-modal.luxreg-open #register-page,
#custom-modal.luxreg-open .wrap-register-page,
#custom-modal.luxreg-open .wrap-form-register-page {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
}

/* Use the same site's primary/secondary button system. */
#register-page .luxreg-runtime-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: .65rem 1rem;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

#register-page .luxreg-runtime-button.primary-button {
  background: linear-gradient(
    180deg,
    var(--primary-color-1),
    var(--primary-color-2)
  );
  color: var(--primary-font-color);
}

#register-page .luxreg-runtime-button.secondary-button {
  background: linear-gradient(
    180deg,
    var(--secondary-color-1),
    var(--secondary-color-2)
  );
  color: var(--secondary-font-color);
}

@media (max-width: 600px) {
  #custom-modal .luxen88-register-runtime {
    max-height: none !important;
    overflow: visible !important;
  }

  #register-page .luxreg-bank-list {
    max-height: 300px;
  }
}
