.password-control {
  position: relative;
  width: 100%;
  max-width: 42rem;
  color: var(--text, inherit);
}

.password-control > input {
  box-sizing: border-box;
  width: 100%;
  padding-inline-end: 3.5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 1px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--surface-strong, color-mix(in srgb, currentColor 8%, transparent));
}

.password-toggle:focus-visible {
  outline: 2px solid var(--focus, currentColor);
  outline-offset: -3px;
}

.password-toggle:disabled {
  cursor: default;
  opacity: 0.5;
}

.password-toggle svg {
  flex: none;
}

.password-control > input::-ms-reveal {
  display: none;
}
