/* Google OAuth Demo - 簡潔版面、響應式、深/淺色 */

:root {
  --bg: #f5f5f5;
  --card-bg: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e0e0e0;
  --btn-bg: #4285f4;
  --btn-text: #fff;
  --error: #c5221f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --text: #f0f0f0;
    --muted: #aaa;
    --border: #444;
    --btn-bg: #5a9cf5;
    --btn-text: #fff;
    --error: #e57373;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.user-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.user-email, .user-google-id {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-google {
  background: #4285f4;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--border);
}

.error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

[hidden] {
  display: none !important;
}
