/*
 * Shared styles for the signed-out and sign-in problem pages.
 * Same language as the app: navy ink, slate neutrals, one blue, soft panels
 * on a faint dot grid. Inter is self-hosted (SIL OFL 1.1, see /fonts).
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
    url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
    url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Fallback";
  src:
    local("Arial"), local("Helvetica Neue"), local("Helvetica"),
    local("Liberation Sans");
  size-adjust: 109.4%;
  ascent-override: 88.6%;
  descent-override: 22.1%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #f3f6fb;
  --bg-end: #f1f5f9;
  --fg: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --dot: rgba(15, 23, 42, 0.1);
  --glow: rgba(219, 234, 254, 0.7);
  --shadow:
    0 1px 2px rgba(15, 23, 42, 0.04), 0 34px 120px rgba(15, 23, 42, 0.12);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-fg: #ffffff;
  --ring: rgba(37, 99, 235, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-end: #0a0f1d;
    --fg: #f8fafc;
    --muted: #94a3b8;
    --card: #151f35;
    --line: rgba(148, 163, 184, 0.18);
    --dot: rgba(148, 163, 184, 0.12);
    --glow: rgba(37, 99, 235, 0.22);
    --shadow: 0 1px 2px rgba(2, 6, 23, 0.4), 0 34px 120px rgba(2, 6, 23, 0.6);
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-fg: #0f172a;
    --ring: rgba(96, 165, 250, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  color: var(--fg);
  letter-spacing: -0.01em;
  background-color: var(--bg);
  background-image:
    radial-gradient(var(--dot) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, var(--glow), transparent 32rem),
    linear-gradient(var(--bg) 0%, var(--bg-end) 100%);
  background-size:
    24px 24px,
    100% 100%,
    100% 100%;
  font-family:
    "Inter",
    "Inter Fallback",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.mark {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 24px;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

a.button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--ring);
}

a.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ring);
}

@media (max-width: 480px) {
  main {
    padding: 28px 24px;
    border-radius: 24px;
  }

  a.button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.button {
    transition: none;
  }

  a.button:hover {
    transform: none;
  }
}
