/* Standalone SDK pages use the same neutral surface as embedded sign-in. */
:root {
  color-scheme: light;
  --text: #172033;
  --muted: #5f6b84;
  --primary: #1976d2;
  --primary-strong: #125aa4;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 6vh, 72px) clamp(20px, 5vw, 48px);
  font: 1rem/1.6 Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

.sign-in-page {
  display: grid;
  gap: 24px;
  width: min(100%, 560px);
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
p { margin: 0; }
.lead { color: var(--muted); }
.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 22px rgba(25, 118, 210, .18);
}
.btn-secondary { color: var(--text); background: #eef3fa; }
a { color: var(--primary-strong); text-underline-offset: .2em; }
.btn-primary:hover { filter: brightness(.94); }
.btn-secondary:hover { background: #e2eaf5; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.callback-status { color: var(--muted); white-space: pre-wrap; }
.callback-status.is-success { color: #24713d; }
.callback-status.is-error { color: #ad2929; }
.callback-status.is-waiting::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 18px;
  border: 2px solid #dce7f6;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: sign-in-spin 1s linear infinite;
}
.reference { color: var(--muted); font-size: .85rem; }
.error-details { display: grid; gap: 8px; color: var(--muted); }
#popupStatus { min-height: 3.2em; color: var(--muted); }
#webMessageFrameHost:empty { display: none; }
#webMessageFrameHost iframe {
  display: block;
  width: 100%;
  height: 720px;
  height: min(720px, 80svh);
  border: 0;
  background: #fff;
}
.sign-in-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; }
[hidden] { display: none !important; }
@keyframes sign-in-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .callback-status.is-waiting::before { animation: none; }
}
