.password-control {
  position: relative;
  width: 100%;
}

.password-control input {
  padding-right: 46px !important;
}

.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #4A5C72;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s, color 0.2s;
  width: 34px;
  z-index: 2;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(27, 42, 62, 0.08);
  color: #1B2A3E;
  outline: none;
}

.password-toggle svg {
  height: 18px;
  pointer-events: none;
  width: 18px;
}

.password-requirements {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.password-rule,
.password-match-message {
  color: #8BA4BF;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.password-rule::before {
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  margin-right: 7px;
  transform: translateY(-1px);
  width: 7px;
}

.password-rule.met {
  color: #3A8A6A;
}

.password-rule.met::before {
  background: currentColor;
}

.password-match-message {
  color: #C0533A;
  display: none;
  margin-top: 6px;
}

.password-match-message.visible {
  display: block;
}
