/* The show/hide-password button (static/password-reveal.js). Shared by the school portals' sign-in and the
   platform console's, so it takes its colours from the field around it (currentColor) rather than either theme. */
.pw-reveal { position: relative; display: block; }
.pw-reveal > input { width: 100%; padding-right: 3rem !important; }
.pw-reveal__btn {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; min-width: 44px; min-height: 44px; /* a comfortable target for a thumb */
  margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent;
  color: inherit; opacity: .6; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pw-reveal__btn:hover, .pw-reveal.is-shown .pw-reveal__btn { opacity: 1; }
.pw-reveal__btn:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; opacity: 1; }
.pw-reveal__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-reveal__slash { display: none; }
.pw-reveal.is-shown .pw-reveal__slash { display: inline; }
/* Some browsers draw their own reveal button on password fields; one button is enough. */
.pw-reveal input::-ms-reveal, .pw-reveal input::-ms-clear { display: none; }

/* A portal's Change password page (parent and student; body.auth--square, set by the page): square like the rest of the
   portal, in the school's colour. The sign-in page itself keeps its own look. */
body.auth--square .auth-form input, body.auth--square .auth-form button, body.auth--square .ui-btn,
body.auth--square .pw-reveal__btn, body.auth--square .ui-alert { border-radius: 0 !important; }
body.auth--square .auth-form input:focus { border-color: var(--brand); outline-color: color-mix(in srgb, var(--brand) 45%, transparent); }

/* The password-reset code box (forgot_password_code.html): typed XXX-XXX, so a fixed-width face with room between
   the characters makes each one easy to check against the email. */
.ui-input--code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; }
