/* Willber V19.2 — registration-only select contrast and optional password generator.
   Native select popups may be rendered on a white OS surface even in dark mode.
   Force a light popup palette without changing the closed dark-theme control. */
body.wh-template-clientregister #registration select {
  color-scheme: light;
}
body.wh-template-clientregister #registration select option,
body.wh-template-clientregister #registration select optgroup {
  color: #172033 !important;
  background-color: #ffffff !important;
}
body.wh-template-clientregister #registration select option:checked {
  color: #111827 !important;
  background-color: #bfdbfe !important;
}
body.wh-template-clientregister #registration select option:disabled,
body.wh-template-clientregister #registration select optgroup:disabled {
  color: #626c7c !important;
  background-color: #ffffff !important;
}
/* Bootstrap/select2 custom dropdowns, if inserted by WHMCS custom fields. */
body.wh-template-clientregister #registration .dropdown-menu,
body.wh-template-clientregister #registration .select2-results__options {
  background: var(--wh-surface) !important;
}
body.wh-template-clientregister #registration .dropdown-menu .dropdown-item,
body.wh-template-clientregister #registration .select2-results__option {
  color: var(--wh-text) !important;
}
body.wh-template-clientregister #registration .dropdown-menu .dropdown-item:hover,
body.wh-template-clientregister #registration .select2-results__option--highlighted {
  background: var(--wh-brand-soft) !important;
  color: var(--wh-text) !important;
}

body.wh-template-clientregister #registration .wh-reg-password-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--wh-border);
  border-radius: 14px;
  background: var(--wh-surface-2);
}
body.wh-template-clientregister #registration .wh-reg-password-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
body.wh-template-clientregister #registration .wh-reg-password-intro > i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--wh-brand);
  background: var(--wh-brand-soft);
}
body.wh-template-clientregister #registration .wh-reg-password-intro strong {
  display: block;
  color: var(--wh-text);
  font-size: .88rem;
}
body.wh-template-clientregister #registration .wh-reg-password-intro small {
  display: block;
  margin-top: 4px;
  color: var(--wh-text-muted);
  line-height: 1.55;
}
body.wh-template-clientregister #registration .wh-reg-password-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
body.wh-template-clientregister #registration .wh-reg-password-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: .81rem;
  font-weight: 750;
}
body.wh-template-clientregister #registration .wh-reg-password-generate {
  border: 1px solid transparent !important;
  background: linear-gradient(105deg,#8153ef,#416ff0) !important;
  color: #fff !important;
}
body.wh-template-clientregister #registration .wh-reg-password-generate:hover {
  filter: brightness(1.09);
}
body.wh-template-clientregister #registration .wh-reg-password-secondary {
  border: 1px solid var(--wh-border-strong) !important;
  background: var(--wh-surface) !important;
  color: var(--wh-text) !important;
}
body.wh-template-clientregister #registration .wh-reg-password-tools button:disabled {
  opacity: .52;
  cursor: not-allowed;
}
body.wh-template-clientregister #registration .wh-reg-password-status {
  min-height: 1.2em;
  margin: 11px 0 0;
  color: var(--wh-text-muted);
  font-size: .76rem;
  line-height: 1.5;
}
body.wh-template-clientregister #registration .wh-reg-password-status[data-state="success"] {
  color: #2fba88;
}
body.wh-template-clientregister #registration .wh-reg-password-status[data-state="error"] {
  color: #df6678;
}
html[data-wh-theme="light"] body.wh-template-clientregister #registration .wh-reg-password-status[data-state="success"] {
  color: #13694d;
}
html[data-wh-theme="light"] body.wh-template-clientregister #registration .wh-reg-password-status[data-state="error"] {
  color: #a7273d;
}
@media (max-width: 575.98px) {
  body.wh-template-clientregister #registration .wh-reg-password-card { padding: 13px; }
  body.wh-template-clientregister #registration .wh-reg-password-tools button { flex: 1 1 auto; }
  body.wh-template-clientregister #registration .wh-reg-password-generate { flex-basis: 100% !important; }
}
