/**
 * Password fields with show/hide toggle — auth, dashboard, admin, storefront.
 */
.lm-password-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lm-password-field > label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.lm-password-field__control {
  position: relative;
  display: block;
  width: 100%;
}

.lm-password-field__control > input,
.lm-password-field__control > .form-control {
  width: 100%;
  padding-right: 2.75rem;
}

.lm-password-field__toggle,
.auth-pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.75rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--lm-ink-soft, var(--text, #334155));
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  line-height: 1;
}

.lm-password-field__toggle .lm-icon,
.lm-password-field__toggle .fi,
.auth-pw-toggle .lm-icon,
.auth-pw-toggle .fi {
  display: block;
  line-height: 1;
  pointer-events: none;
}

.lm-password-field__toggle:hover,
.auth-pw-toggle:hover {
  color: var(--lm-ink, var(--text, #0f172a));
}

.lm-password-field__toggle:focus-visible,
.auth-pw-toggle:focus-visible {
  outline: 2px solid var(--lm-accent, var(--accent, #0d9488));
  outline-offset: -2px;
}

.auth-field .lm-password-field__control > input,
.auth-field .lm-password-field__control > .form-control {
  border-radius: 10px;
}

.auth-field .lm-password-field__toggle,
.auth-field .auth-pw-toggle {
  border-radius: 0 10px 10px 0;
}

.auth-field--password {
  position: static;
}
