.password-group {
  display: grid;
  gap: 8px;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 118px;
}

.password-visibility-toggle {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  min-height: 38px;
  margin: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(0, 206, 209, .1);
  color: var(--deep);
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 'DM Sans', Arial, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.password-visibility-toggle:hover {
  background: rgba(0, 206, 209, .2);
}

.password-visibility-toggle:active {
  transform: translateY(-50%) scale(.96);
}

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

.password-toggle-eye {
  position: relative;
  width: 17px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 70% 0;
  transform: rotate(45deg);
  display: block;
  flex: 0 0 auto;
}

.password-toggle-eye::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-visibility-toggle.is-visible .password-toggle-eye::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 1.6px;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-90deg);
}

@media (max-width: 390px) {
  .password-control input {
    padding-right: 66px;
  }

  .password-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
