/* /auth/discord interstitial — brand look, CSP style-src 'self' */
@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/geist-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/geist-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: #0a0a0b;
  --card: #111112;
  --border: #1f1f1f;
  --text-1: #fafafa;
  --muted: #a1a1aa;
  --accent: #1db954;
  --accent-hover: #19a44a;
  --font: "Geist Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.oauth-interstitial {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--background);
  color: var(--text-1);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.oauth-interstitial__main {
  width: min(100%, 430px);
  padding: 40px 32px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.oauth-interstitial__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.oauth-interstitial__lockup {
  display: block;
  width: 148px;
  height: 34px;
  object-fit: contain;
}

.oauth-interstitial__main h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.oauth-interstitial__main p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.oauth-interstitial__spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 26px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: oauth-interstitial-spin 0.9s linear infinite;
}

.oauth-interstitial__main a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #04170b;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 400px) {
  .oauth-interstitial__main {
    padding: 36px 20px;
  }
  .oauth-interstitial__main a {
    font-size: 0.875rem;
    padding: 10px 14px;
  }
}

.oauth-interstitial__main a:hover {
  background: var(--accent-hover);
}

.oauth-interstitial__main a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--card),
    0 0 0 4px var(--accent);
}

@keyframes oauth-interstitial-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oauth-interstitial__spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.45);
  }
}
