/* The eye in a password field (js/password-eye.js): inside the field, at its right end. */

.password-wrap {
  position: relative;
  display: inline-block;
}

/* On "my page" the field is a block as wide as before */
.field .password-wrap {
  display: block;
  max-width: 24em;
}

.password-wrap input {
  padding-right: 48px !important;
}

.password-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-eye:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.password-eye:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}

.password-eye[aria-pressed="true"] {
  color: var(--berry);
}
