/* GD Tools sign-in page. Self-contained (it is shown before sign-in, so it loads nothing that needs one). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #fafafa; --surface: #ffffff; --text: #111111; --muted: #5f6368; --border: #e6e6e9;
  --brand: #ffd400; --brand-orange: #f08a00; --red: #c4232b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f0f11; --surface: #18181b; --text: #f4f4f5; --muted: #a1a1aa; --border: #2e2e33; --red: #ff6b70; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5; }

.signin { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; overflow: hidden; }
.signin-glow {
  position: absolute; top: -20%; left: 50%; width: 900px; height: 900px; transform: translateX(-50%); z-index: 0;
  background: radial-gradient(circle, rgba(255, 212, 0, 0.28) 0%, rgba(240, 138, 0, 0.12) 35%, transparent 65%);
  pointer-events: none;
}
.signin-card {
  position: relative; z-index: 2; width: min(440px, 100%); padding: 40px 36px 32px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.signin-logo { display: block; margin: 0 auto 14px; filter: drop-shadow(0 6px 14px rgba(240, 138, 0, 0.35)); }
.signin-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.signin-card h1 { margin: 0 0 8px; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.signin-brand { background: linear-gradient(90deg, #f5b800, var(--brand-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signin-lede { margin: 0 0 24px; color: var(--muted); }
.signin-lede strong { color: var(--text); }

.signin-button { display: flex; justify-content: center; min-height: 44px; }
/* Shown until Google's own button loads (or when it cannot): same size and look as Google's. */
.signin-fallback {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 300px; max-width: 100%; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: #3c4043; font: 600 0.95rem Inter, system-ui, sans-serif; cursor: pointer;
}
.signin-fallback svg { width: 18px; height: 18px; }
.signin-error { margin: 14px 0 0; color: var(--red); font-weight: 600; font-size: 0.9rem; }

.signin-tools { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); }
.signin-tools li { padding: 3px 10px; border-radius: 999px; background: rgba(255, 212, 0, 0.18); font-size: 0.78rem; font-weight: 700; }
.signin-tools li:last-child { background: transparent; color: var(--muted); font-weight: 600; }
.signin-note { margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; }
.signin-footer { position: relative; z-index: 2; margin-top: 24px; color: var(--muted); font-size: 0.8rem; text-align: center; }

/* A guest's private link (/g/…): the code form, in the same card */
.guest-form { display: flex; flex-direction: column; gap: 10px; margin: 0; text-align: left; }
.guest-form + .guest-form { margin-top: 8px; }
.guest-form label { font-weight: 700; font-size: 0.85rem; }
.guest-form input {
  font: 600 1.5rem Inter, system-ui, sans-serif; letter-spacing: 0.35em; text-align: center; padding: 10px 12px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.guest-form input:focus { outline: 2px solid var(--brand-orange); outline-offset: 1px; }
.guest-primary {
  height: 44px; border: 0; border-radius: 999px; cursor: pointer; color: #111;
  font: 700 0.95rem Inter, system-ui, sans-serif; background: linear-gradient(90deg, #ffd400, var(--brand-orange));
  box-shadow: 0 6px 16px rgba(240, 138, 0, 0.28);
}
.guest-primary:hover { filter: brightness(1.05); }
.guest-again { align-self: center; border: 0; background: none; color: var(--muted); font: 600 0.85rem Inter, system-ui, sans-serif; text-decoration: underline; cursor: pointer; padding: 4px; }
.guest-again:hover { color: var(--text); }
.guest-ok { margin: 0 0 14px; color: #1a7f45; font-weight: 600; font-size: 0.9rem; }
.signin-card .signin-error { margin: 0 0 14px; }
@media (prefers-color-scheme: dark) { .guest-ok { color: #4ccb8a; } }
