/* One inset credential control: 16px from input edge to the 20px eye glyph. */
.password-field {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 44px 4px;
  align-items: center;
}
.password-field > input[data-password-visibility] {
  grid-column: 1 / -1;
  grid-row: 1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  /* Component geometry must survive page padding and utility/inline margins. */
  padding-inline-end: 56px !important;
  margin: 0 !important;
}
.password-field .toggle-password {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
}
.password-field .toggle-password:focus-visible {
  outline: 2px solid var(--sm-accent,#00bcd4);
  outline-offset: -2px;
}
/* Keep the existing field spacing on the wrapper, outside the inset hit target. */
.signup-card .password-field { margin-bottom: 1rem; }
.signup-card .password-field:has(> .mb-2) { margin-bottom: .5rem; }
.sm-sensitive-action-dialog .password-field { margin: 8px 0 12px; }
.account-access-step .password-field { margin: 12px 0; }
