/* Brand tokens from pantoufle-home */
:root {
  --brand-purple: #564092;
  --brand-green:  #76bf89;
  --brand-orange: #f68100;
  --brand-red:    #e94256;
  --sand:         #fffdef;
  --sand-dark:    #fef397;
  --text-dark:    #222;
  --text-mid:     #555;
  --text-light:   #888;
  --radius:       8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  color: var(--text-dark);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.card {
  width: min(92vw, 400px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(86, 64, 146, 0.15);
  padding: 32px 28px;
}

.card h1 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  color: var(--brand-purple);
}

.card p.subtitle {
  margin: 0 0 24px;
  color: var(--text-mid);
  font-size: 0.95rem;
}

form { display: grid; gap: 12px; }

label { font-size: 0.85rem; color: var(--text-mid); display: grid; gap: 4px; }

input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  width: 100%;
}

input:focus { outline: 2px solid var(--brand-purple); border-color: transparent; }

button {
  padding: 11px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
}

button.primary { background: var(--brand-purple); color: #fff; }
button.primary:hover { filter: brightness(1.12); }
button.secondary { background: #fff; color: var(--brand-purple); border: 1.5px solid var(--brand-purple); }
button.secondary:hover { background: #f5f2fc; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 18px 0 14px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #e3e3e3; }

.alt-methods { display: grid; gap: 10px; }

#googleButton { display: flex; justify-content: center; }

.error {
  background: #fdecee;
  color: var(--brand-red);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: none;
}

.notice {
  background: #eef7f0;
  color: #2c7a42;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: none;
}

.footer-link { margin-top: 20px; text-align: center; font-size: 0.9rem; color: var(--text-mid); }
.footer-link a { color: var(--brand-purple); }

.hidden { display: none !important; }

pre.token {
  background: #f6f6f6;
  border-radius: var(--radius);
  padding: 10px;
  font-size: 0.7rem;
  overflow-x: auto;
  max-width: 100%;
}
