/* ==========================================================================
   Design Hub — "show password" toggle (static/js/password.js)
   Loaded by every layout after base.css. Tokens from base.css only.
   ========================================================================== */

.pwfield {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* The input keeps the generic .form-field look; only room for the eye. */
.pwfield input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding-right: 48px;
}

.pwfield__toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px; /* touch target */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pwfield__toggle:hover,
.pwfield__toggle[aria-pressed="true"] {
  color: var(--color-ink);
}

.pwfield__toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.pwfield__toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
