:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #1a73e8;
  --ok-bg: #dcfce7;
  --ok-text: #166534;
  --warn-bg: #fef9c3;
  --warn-text: #854d0e;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.card.wide { max-width: 720px; }
.card.center-card { text-align: center; }

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.logo.small { font-size: 18px; margin: 0; }

h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 15px; margin: 28px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.fineprint { font-size: 12px; margin-top: 24px; text-align: center; }

/* Google button */
.btn-google {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #3c4043;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: box-shadow .15s ease, background .15s ease;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(60, 64, 67, .2); }
.g-logo { width: 20px; height: 20px; }

.btn-outline {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease;
}
.btn-outline:hover { background: var(--bg); }

/* topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; }

/* identity table */
.identity { width: 100%; border-collapse: collapse; font-size: 14px; }
.identity th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px 8px 0;
  width: 160px;
  vertical-align: top;
}
.identity td { padding: 8px 0; word-break: break-all; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }

.json {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.err-code { background: var(--bg); padding: 4px 8px; border-radius: 6px; font-size: 13px; }

.error-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
