@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
}
:root {
  --blue: #005786;      /* DEMAND primary (original site background) */
  --blue-dark: #00466f; /* hover / pressed */
  --sky: #69b8d9;       /* DEMAND accent */
  --ink: #1d2733;
  --muted: #5f6b78;
  --line: #dfe5ea;
  --bg: #ffffff;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand { text-align: center; margin-bottom: 40px; }
.logo { display: inline-block; line-height: 0; border-radius: 4px; }
.logo img { width: 197px; height: auto; }
.tagline {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(0, 87, 134, .16);
  border-top: 3px solid var(--blue);
}
h1, h2 {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hint { margin: -12px 0 24px; color: var(--muted); font-size: 15px; }
.field { margin-bottom: 18px; }
label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9d2da;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover { border-color: #9fb0bf; }
input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(105, 184, 217, .45);
}
button, .btn {
  display: block;
  box-sizing: border-box;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  height: 48px;
  margin-top: 26px;
  font: inherit;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .15s;
}
button:hover, .btn:hover { background: var(--blue-dark); }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.switch { margin: 22px 0 0; text-align: center; font-size: 15px; }
.switch a { color: var(--blue); font-weight: 500; text-decoration: none; }
.switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Toggle with no JavaScript: #reset is shown when targeted via the URL hash. */
.panel-reset { display: none; }
.panel-reset:target { display: block; }
.card:has(.panel-reset:target) .panel-login { display: none; }

.footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer p { margin: 0; }

@media (max-width: 480px) {
  .wrap { padding: 48px 20px 24px; justify-content: flex-start; }
  .brand { margin-bottom: 32px; }
  .card { padding: 32px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.panel-login .hint { margin: 0 0 4px; }
.panel-reset { display: none !important; }

.footer, .footer p { text-align: center; }
.btn { display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
