/* The password page. It stands alone: nothing else is served to someone who hasn't logged in. */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/vendor/inter/files/inter-latin-wght-normal.woff2) format('woff2-variations');
}
:root {
  color-scheme: only light;
  --ink: #0B2545;
  --line: #E2E8F0;
  --danger: #B42318;
  --fast: 120ms;
  /* Room for the words under the field, kept whether or not they are showing, so that a wrong try moves nothing above them. */
  --message-room: 26px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #fff; }
body {
  color: var(--ink);
  font: 400 16px/1.5 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: #CFE0F5; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
}
.login-box { width: 100%; max-width: 360px; }
.login-title {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -.014em;
  text-align: center;
  text-wrap: balance;
}
.login-form { display: flex; flex-direction: column; }
/* Rounded, with a very light shadow, and a state of its own when focused. */
.login-field {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .04), 0 2px 10px rgba(11, 37, 69, .04);
  color: inherit;
  font: inherit;
  font-size: 16px;
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
}
.login-field:focus { outline: none; }
.login-field:focus-visible {
  border-color: #94A3B8;
  box-shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 4px 14px rgba(11, 37, 69, .07);
}
.login-field[aria-invalid="true"] { border-color: var(--danger); }
.login-message {
  min-height: var(--message-room);
  margin: 0;
  padding: 8px 20px 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 18px;
}
/* Solid navy, as round as the field. */
.login-button {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--fast) ease;
}
.login-button:focus { outline: none; }
.login-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.login-button:active { background: #17406F; }
@media (hover: hover) {
  .login-button:hover { background: #17406F; }
}
/* With no words under the field, the space they would take goes under the button, so the field stays where it is. */
.login-form:not(:has(.login-message)) { padding-bottom: var(--message-room); }
/* A notice that stands in for the form has nothing under it, or at most a sentence. */
.login-box > .login-title:only-child { margin-bottom: 0; }
.login-note { margin: 0; text-align: center; text-wrap: balance; }

@media (max-width: 767.98px) {
  .login-title { font-size: 26px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
