:root {
  color-scheme: dark;
  --gh-wine-950: #120b0e;
  --gh-wine-900: #211116;
  --gh-wine-800: #351721;
  --gh-gold-500: #c99a4a;
  --gh-gold-300: #e7c782;
  --gh-ivory: #fbf5ea;
  --gh-muted: #c9bdb7;
  --gh-line: rgba(231, 199, 130, 0.22);
  font-family: Heebo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
.gh-auth-page {
  margin: 0;
  min-height: 100svh;
  color: var(--gh-ivory);
  background:
    radial-gradient(circle at 14% 18%, rgba(201, 154, 74, 0.15), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(91, 35, 52, 0.42), transparent 34rem),
    linear-gradient(145deg, #0d090a 0%, var(--gh-wine-950) 46%, #1e0f14 100%);
}
.gh-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.gh-login-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: 56px;
}
.gh-login-intro { max-width: 650px; }
.gh-login-intro img { width: min(220px, 58vw); height: auto; object-fit: contain; }
.gh-eyebrow { color: var(--gh-gold-300); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; }
.gh-login-intro h1 { margin: 26px 0 20px; font-family: "Frank Ruhl Libre", Georgia, serif; font-size: clamp(2.65rem, 6vw, 5.4rem); line-height: 0.98; font-weight: 600; letter-spacing: -0.035em; }
.gh-login-intro > p:not(.gh-eyebrow) { max-width: 55ch; color: var(--gh-muted); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.75; }
.gh-trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; direction: ltr; }
.gh-trust-row span { border: 1px solid var(--gh-line); border-radius: 999px; padding: 8px 13px; color: #e7ddd5; background: rgba(255,255,255,0.025); font-size: 0.78rem; }
.gh-login-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gh-line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 46px);
  background: linear-gradient(155deg, rgba(53, 23, 33, 0.9), rgba(20, 12, 15, 0.94));
  box-shadow: 0 32px 90px rgba(0,0,0,0.42), inset 0 1px rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
}
.gh-login-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset: -90px -70px auto auto; background: rgba(201,154,74,0.12); }
.gh-card-heading { position: relative; z-index: 1; margin-bottom: 30px; }
.gh-card-heading h2 { margin: 8px 0 8px; font-family: "Frank Ruhl Libre", Georgia, serif; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; }
.gh-card-heading p:last-child { color: var(--gh-muted); margin: 0; }
.gh-login-form { display: grid; gap: 10px; }
.gh-login-form label { margin-top: 8px; color: #f4eadd; font-weight: 700; }
.gh-login-form label span { margin-inline-start: 7px; color: var(--gh-muted); font-size: 0.78rem; font-weight: 500; }
.gh-login-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(231,199,130,0.24);
  border-radius: 14px;
  padding: 0 15px;
  color: var(--gh-ivory);
  background: rgba(10,7,8,0.58);
  font: inherit;
  direction: ltr;
  text-align: left;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.gh-login-form input:focus { border-color: var(--gh-gold-300); background: rgba(10,7,8,0.8); box-shadow: 0 0 0 4px rgba(201,154,74,0.13); }
.gh-login-form button {
  min-height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: #20130c;
  background: linear-gradient(135deg, #f1d698, var(--gh-gold-500));
  box-shadow: 0 14px 30px rgba(201,154,74,0.2);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.gh-login-form button:hover { filter: brightness(1.06); }
.gh-login-form button:focus-visible { outline: 3px solid var(--gh-ivory); outline-offset: 3px; }
.gh-login-form button span { margin-inline-start: 8px; font-size: 0.78rem; }
.gh-message { margin-bottom: 20px; border-radius: 13px; padding: 13px 15px; line-height: 1.55; }
.gh-message-error { border: 1px solid rgba(255,149,149,0.34); color: #ffdada; background: rgba(126,35,43,0.24); }
.gh-message span { display: block; }
.gh-privacy-note { margin: 24px 0 0; color: #9f918c; font-size: 0.77rem; line-height: 1.55; }
.gh-privacy-note + .gh-privacy-note { margin-top: 3px; }
.gh-session-action { position: fixed; z-index: 1200; inset: 9px auto auto 12px; margin: 0; }
.gh-session-action button { min-height: 38px; border: 1px solid rgba(201,154,74,0.32); border-radius: 10px; padding: 0 12px; color: #f2dfb8; background: rgba(20,12,15,0.9); box-shadow: 0 7px 20px rgba(0,0,0,0.2); font: 700 0.75rem/1 Heebo, system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(12px); }
.gh-session-action button:hover { border-color: #d7ad61; background: #2b151d; }
.gh-session-action button:focus-visible { outline: 3px solid #d7ad61; outline-offset: 2px; }
@media (max-width: 800px) {
  .gh-login-shell { width: min(100% - 28px, 580px); grid-template-columns: 1fr; gap: 34px; padding-block: 28px 40px; }
  .gh-login-intro { padding-inline: 8px; }
  .gh-login-intro h1 { margin-block: 18px 14px; font-size: clamp(2.4rem, 13vw, 4rem); }
  .gh-login-intro > p { margin-block: 7px; }
  .gh-trust-row { margin-top: 20px; }
  .gh-login-card { border-radius: 22px; }
  .gh-session-action { inset: auto auto 74px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
