/* Base tokens and reset for the auth pages, per the light column */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter-fallback";
  font-weight: 100 900;
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --line: #ddd9d2;
  --text: #0b0b0c;
  --dim: #6b6862;
  /* Ink keeps link text readable on paper */
  --primary: #0b0b0c;
  --accent: #0b0b0c;
  --green: #1e8a5f;
  --red: #e5605e;
  --radius-card: 24px;
  --radius-btn: 12px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --font: "Inter", "Inter-fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* The inputs were the only stops with no ring; buttons had the UA default */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Frozen, this is a hung page: it is the only progress signal on the wait */
  .spinner,
  .callback-spinner {
    animation-duration: 2.4s !important;
    animation-iteration-count: infinite !important;
  }

  /* A 5000s colour hold is not motion, so the blanket rule must not cut it */
  .form-group input:-webkit-autofill,
  .form-group input:-webkit-autofill:hover,
  .form-group input:-webkit-autofill:focus,
  .form-group input:-webkit-autofill:active {
    transition-duration: 5000s !important;
  }
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--surface);
}
