:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f2;
  color: #171714;
}

* { box-sizing: border-box; }

body { margin: 0; }

.auth-router {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-router__card {
  width: min(100%, 480px);
  padding: 40px;
  border: 1px solid #deded8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(18 18 15 / 8%);
  text-align: center;
}

.auth-router__brand {
  display: inline-block;
  margin-bottom: 28px;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.auth-router__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 24px;
  border: 3px solid #deded8;
  border-top-color: #171714;
  border-radius: 50%;
  animation: auth-router-spin .8s linear infinite;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.15;
}

p {
  margin: 14px 0 26px;
  color: #66665f;
  line-height: 1.6;
}

.auth-router__support { color: inherit; }

@keyframes auth-router-spin { to { transform: rotate(360deg); } }

@media (prefers-color-scheme: dark) {
  :root { background: #11110f; color: #f4f4ef; }
  .auth-router__card { border-color: #34342f; background: #1b1b18; box-shadow: none; }
  .auth-router__spinner { border-color: #44443e; border-top-color: #f4f4ef; }
  p { color: #b7b7ae; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-router__spinner { animation: none; }
}
