/* SS97 password accessibility: always pair a readable foreground/background.
   Applies to every website password field, also when an SS97 field is revealed.
   No change to password storage, authentication or permissions. */
input[type="password"],
input[data-ss97-password-visible="true"] {
  background-image: none !important;
  background-color: #f7fbff !important;
  color: #142b3e !important;
  -webkit-text-fill-color: #142b3e !important;
  caret-color: #142b3e !important;
  border-color: #7994aa !important;
  color-scheme: light;
}

input[type="password"]::placeholder,
input[data-ss97-password-visible="true"]::placeholder {
  color: #4c6577 !important;
  -webkit-text-fill-color: #4c6577 !important;
  opacity: 1;
}

input[type="password"]:focus,
input[data-ss97-password-visible="true"]:focus {
  outline: 2px solid #10a6df !important;
  outline-offset: 2px;
}

/* Chromium/Android autofill may otherwise paint its own dark text/background. */
input[type="password"]:-webkit-autofill,
input[data-ss97-password-visible="true"]:-webkit-autofill {
  -webkit-text-fill-color: #142b3e !important;
  -webkit-box-shadow: 0 0 0 1000px #f7fbff inset !important;
  caret-color: #142b3e !important;
}

.ss97-password-visibility {
  display: inline-block;
  min-height: 38px;
  margin: 6px 0 10px;
  padding: 6px 12px;
  border: 1px solid #7e9cb2;
  border-radius: 7px;
  background: #e7f4fd;
  color: #103753;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.ss97-password-visibility:focus-visible {
  outline: 2px solid #10a6df;
  outline-offset: 2px;
}
