/*
 * "Sign in with Gate.haus" button.
 *
 * Drop this file in (or paste the rules into your stylesheet), then use:
 *
 *   <a class="gatehaus-btn gatehaus-btn--dark" href="YOUR_AUTHORISE_URL">
 *     <svg class="gatehaus-btn__mark" viewBox="10 4 44 54" aria-hidden="true">
 *       <path fill-rule="evenodd" d="M32 4l22 8v18c0 13.2-9.4 24.6-22 28-12.6-3.4-22-14.8-22-28V12zM32 22a7 7 0 0 0-3.4 13.1L26.5 46h11l-2.1-10.9A7 7 0 0 0 32 22z"/>
 *     </svg>
 *     Sign in with Gate.haus
 *   </a>
 *
 * Variants: --dark (default for most sites), --light (on dark or busy
 * backgrounds use --dark instead), --green. Add --block to fill the width,
 * --icon for the square icon-only button (keep the label as aria-label).
 */

.gatehaus-btn {
  --gh-bg: #10201a;
  --gh-fg: #ffffff;
  --gh-mark: #26b47f;
  --gh-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--gh-border);
  border-radius: 10px;
  background: var(--gh-bg);
  color: var(--gh-fg);
  font: 600 16px/1 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.gatehaus-btn:hover { filter: brightness(1.08); }
.gatehaus-btn:active { filter: brightness(0.96); }
.gatehaus-btn:focus-visible { outline: 3px solid #26b47f; outline-offset: 2px; }

.gatehaus-btn__mark {
  width: 19.6px;
  height: 24px;
  flex: none;
  fill: var(--gh-mark);
}

.gatehaus-btn--dark  { --gh-bg: #10201a; --gh-fg: #ffffff; --gh-mark: #26b47f; }
.gatehaus-btn--light { --gh-bg: #ffffff; --gh-fg: #10201a; --gh-mark: #1e9366; --gh-border: #c9d3ce; }
/* #178259, not the brand #26B47F: white on brand green fails contrast. */
.gatehaus-btn--green { --gh-bg: #178259; --gh-fg: #ffffff; --gh-mark: #ffffff; }

.gatehaus-btn--light:hover { filter: none; background: #f4f7f5; }

.gatehaus-btn--block { display: flex; width: 100%; }

.gatehaus-btn--icon { width: 48px; padding: 0; }
.gatehaus-btn--icon .gatehaus-btn__mark { width: 21.2px; height: 26px; }
