/* Gatekeeper sign-in screen (signin.js). Uses the page's colour variables when it has them
   (--block, --text, --muted, --primary, --primary-ink, --accent, --bad, --radius), else the fallbacks.
   Input styling is left to the page; :where() keeps the fallback input style below easy to override. */
.gk-signin {
  max-width: 420px; margin: 24px auto 0; padding: 16px 20px;
  background: var(--block, #f3f4f6); color: var(--text, inherit); border-radius: var(--radius, 10px);
}
.gk-muted { color: var(--muted, #6b7280); margin: 0; }
.gk-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.gk-field input { width: 100%; box-sizing: border-box; }
:where(.gk-field) input { font: inherit; padding: 8px 10px; }
.gk-submit {
  width: 100%; margin-top: 8px; padding: 12px; font: inherit; font-size: 1.05rem; font-weight: 600; cursor: pointer;
  border-radius: 8px; border: 1px solid var(--primary, #2563eb);
  background: var(--primary, #2563eb); color: var(--primary-ink, #fff);
}
.gk-submit:disabled { opacity: .5; cursor: not-allowed; }
.gk-submit:not(:disabled):hover { filter: brightness(1.1); }
/* "Sign in with Google": white button with the Google logo, per Google's branding guidance */
.gk-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px; padding: 11px 16px; border-radius: 8px;
  background: #fff; color: #1f1f1f; border: 1px solid #747775;
  font-weight: 600; text-decoration: none;
}
.gk-google-btn:hover { background: #f2f2f2; }
.gk-google-btn:focus-visible, .gk-submit:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
.gk-tip { color: var(--muted, #6b7280); font-size: .75rem; line-height: 1.4; margin: 14px 0 0; }
.gk-error { color: var(--bad, #dc2626); margin: 8px 0 0; }
.gk-error:empty { display: none; }
