:root {
  color: #102a43;
  background: #eef4f8;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
.page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card {
  width: min(440px, 100%);
  padding: 40px 32px;
  border: 1px solid #d8e2eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgb(15 45 70 / 10%);
  text-align: center;
}
.brand {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #0f766e;
  font-size: 28px;
  font-weight: 700;
}
.eyebrow { margin: 0; color: #527082; font-size: 12px; letter-spacing: 0.18em; }
h1 { margin: 8px 0 28px; font-size: 30px; }
h2 { margin: 20px 0 10px; font-size: 19px; }
#detail { margin: 0; color: #627d98; line-height: 1.7; }
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 4px solid #d9e8e6;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
button {
  width: 100%;
  margin-top: 24px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #0f766e;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:focus-visible { outline: 3px solid #8bd3cb; outline-offset: 2px; }
[hidden] { display: none !important; }
body[data-state="NOT_READY"] .spinner,
body[data-state="UNKNOWN"] .spinner,
body[data-state="IDENTITY_DENIED"] .spinner { display: none; }
body[data-state="IDENTITY_DENIED"] h2 { color: #b42318; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
