/*
 * "Sign in with Google" button following Google's branding guidelines
 * (developers.google.com/identity/branding-guidelines): standard multicolour "G" on white
 * (light) or #131314 (dark), 1px outline, 40px high, 12px side padding, 10px between logo and
 * text, Roboto Medium 14/20 (falls back to the system sans-serif; no third-party font load).
 * Self-hosted, no inline styles or scripts: works under a strict CSP (style-src 'self').
 */
.olg-google {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  width: 100%;
  max-width: 400px;
  padding: 0 12px;
  border: 1px solid #747775;
  border-radius: 20px;
  background: #fff;
  color: #1f1f1f;
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: .25px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.olg-google:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
.olg-google:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.olg-google:active { background: #eceff1; }
.olg-google img { width: 20px; height: 20px; flex: 0 0 20px; }
.olg-google span { overflow: hidden; text-overflow: ellipsis; }
.olg-google--square { border-radius: 4px; }

/* dark variant: inside .olg-dark, on a dark page ([data-scheme|data-theme="dark"]) or, for pages
   that follow the system ([data-scheme|data-theme="auto"]), when the system is dark */
@media (prefers-color-scheme: dark) {
  [data-scheme="auto"] .olg-google, [data-theme="auto"] .olg-google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
  [data-scheme="auto"] .olg-google:hover, [data-theme="auto"] .olg-google:hover { background: #1f1f20; }
}
[data-scheme="dark"] .olg-google, [data-theme="dark"] .olg-google, .olg-dark .olg-google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
[data-scheme="dark"] .olg-google:hover, [data-theme="dark"] .olg-google:hover, .olg-dark .olg-google:hover { background: #1f1f20; }

.olg-providers { display: grid; gap: 12px; justify-items: center; margin: 0 0 16px; }
.olg-or { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 0; color: inherit; opacity: .7; font-size: 13px; }
.olg-or::before, .olg-or::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .35; }
.olg-error { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; border: 1px solid #f2b8b5; background: #fce8e6; color: #8c1d18; font-size: 14px; line-height: 1.4; }
[data-scheme="dark"] .olg-error, [data-theme="dark"] .olg-error, .olg-dark .olg-error { border-color: #8c1d18; background: #2c0b0a; color: #f2b8b5; }
