/* RegioEmpresarios — campos de contraseña con visibilidad y fortaleza */
.re-password-wrap {
  position: relative;
}

.re-password-wrap .form-control.re-password-input,
.re-password-wrap .form-control {
  padding-right: 2.75rem;
}

.re-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--re-text-secondary, #4B5563);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.re-password-toggle:hover,
.re-password-toggle:focus-visible,
.re-password-toggle--pressed {
  color: var(--re-primary, #C8102E);
  background: var(--re-accent-muted, rgba(200, 16, 46, 0.12));
  outline: none;
}

.re-password-toggle .fa-solid {
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.re-pwd-strength {
  margin-top: 0.5rem;
}

.re-pwd-strength__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--re-borde, #E5E7EB);
  overflow: hidden;
}

.re-pwd-strength__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.2s ease, background-color 0.2s ease;
  background: var(--re-border-strong, #D1D5DB);
}

.re-pwd-strength__fill[data-level="weak"] {
  width: 33%;
  background: #DC2626;
}

.re-pwd-strength__fill[data-level="medium"] {
  width: 66%;
  background: #F59E0B;
}

.re-pwd-strength__fill[data-level="strong"] {
  width: 100%;
  background: #16A34A;
}

.re-pwd-strength__label {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--re-text-secondary, #4B5563);
}

.re-pwd-strength__label[data-level="weak"] {
  color: #DC2626;
}

.re-pwd-strength__label[data-level="medium"] {
  color: #D97706;
}

.re-pwd-strength__label[data-level="strong"] {
  color: #16A34A;
}

.re-pwd-requirements {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--re-text-secondary, #4B5563);
}

.re-pwd-requirements li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.re-pwd-requirements li::before {
  content: "○";
  font-size: 0.75rem;
  color: var(--re-border-strong, #D1D5DB);
}

.re-pwd-requirements li.re-pwd-req--ok::before {
  content: "✓";
  color: #16A34A;
  font-weight: 700;
}

.re-pwd-match {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
}

.re-pwd-match--ok {
  color: #16A34A;
}

.re-pwd-match--bad {
  color: #DC2626;
}

@media (max-width: 575.98px) {
  .re-password-wrap .form-control.re-password-input,
  .re-password-wrap .form-control {
    padding-right: 2.5rem;
  }

  .re-password-toggle {
    width: 1.85rem;
    height: 1.85rem;
    right: 0.35rem;
  }
}
