/* Log in and change password (templates/registration/_signin_base.html). Standalone, because nobody is
   signed in yet. Colours, the card, buttons and fields come from pm.css. The admin keeps its own pages. */
.si-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; }
.si { width: min(100%, 400px); display: grid; gap: 18px; }
.si-logo { display: grid; justify-items: center; gap: 8px; }
.si-logo img { display: block; height: 44px; width: auto; }
.si-logo .logo-dark { display: none; }
:root[data-theme="dark"] .si-logo .logo-light { display: none; }
:root[data-theme="dark"] .si-logo .logo-dark { display: block; }
.si-logo .brand-sub { margin: 0; padding: 0; text-align: center; }
.si-card { display: grid; gap: 14px; }
.si-card h1 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink-1); }
.si-text { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.si-form { display: grid; gap: 14px; }
.si-form .field input { height: 42px; font-size: 14px; }
.si-form .btn { width: 100%; height: 44px; justify-content: center; }
.si-err { font-size: 12px; font-weight: 600; color: var(--crit-ink); }
.si-help ul { margin: 2px 0 0; padding-left: 16px; }
.si-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; font-size: 13px; }
.si-after form { display: inline-flex; }
.si-after button.link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* The eye in a password field (static/js/signin.js): shows the password and hides it again. */
.si-pw { position: relative; min-width: 0; }
.si-form .si-pw input { padding-right: 46px; }
.si-pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer;
}
.si-pw-toggle .icon { width: 20px; height: 20px; }
.si-pw-toggle:hover, .si-pw-toggle[aria-pressed="true"] { color: var(--ink-1); }
.si-pw-toggle:hover { background: var(--surface-3); }
.si-pw-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
