/*
 * Styles for the signed-out surfaces.
 *
 * A standalone stylesheet, not part of the app bundle, because the server renders two of these
 * pages itself (sign-in failed, wrong account) and they must look like the app without loading
 * 500 kB of it. Self-contained: no custom properties from index.css, so it works before the app
 * has ever run.
 */

:root {
  color-scheme: light dark;
}

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  margin: 0;
  background: #faf9f7;
  color: #1c1917;
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 40px 32px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12);
}

.auth-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-sub {
  margin: 0 0 24px;
  color: #57534e;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 9px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.auth-btn:hover { background: #b45635; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
.auth-btn[aria-disabled='true'] { opacity: 0.7; pointer-events: none; }

.auth-foot {
  margin: 20px 0 0;
  font-size: 13px;
  color: #78716c;
}

.auth-foot code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f5f5f4;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* OAuth consent: what the application is asking for, in words rather than scope identifiers. */
.scope-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 14px 16px;
  text-align: start;
  background: #faf9f7;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
}
.scope-list li { display: flex; flex-direction: column; gap: 2px; }
.scope-list li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e7e5e4; }
.scope-list strong {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  color: #78716c;
}
.scope-list span { font-size: 14px; color: #1c1917; }

.auth-btn-quiet {
  margin-top: 8px;
  background: transparent;
  color: #57534e;
  border: 1px solid #e7e5e4;
}
.auth-btn-quiet:hover { background: #f5f5f4; }

.auth-spin { animation: auth-spin 900ms linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .auth-spin { animation: none; }
  .auth-btn { transition: none; }
}

@media (prefers-color-scheme: dark) {
  .auth-page { background: #1c1917; color: #f5f5f4; }
  .auth-card { background: #262322; border-color: #3a3634; box-shadow: 0 8px 24px -12px rgb(0 0 0 / 0.5); }
  .auth-sub { color: #a8a29e; }
  .auth-foot { color: #8c8681; }
  .auth-foot code { background: #333029; }
  .scope-list { background: #201d1c; border-color: #3a3634; }
  .scope-list li + li { border-top-color: #3a3634; }
  .scope-list strong { color: #a8a29e; }
  .scope-list span { color: #f5f5f4; }
  .auth-btn-quiet { color: #a8a29e; border-color: #3a3634; }
  .auth-btn-quiet:hover { background: #333029; }
}

.auth-logo { display: block; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
