/*
 * GG Bookings — account-forms.css: the account's card, form fields, button,
 * notices and links — what a sign-in form needs wherever it is — and the
 * sign-in POPUP's chrome. Loaded on the account pages (account.css depends
 * on it) AND on every public page a signed-out visitor sees, for the popup
 * the header's Sign in opens (ap_account_render_login_modal). Kept small on
 * purpose: it is render-blocking on every public page view. Built on the
 * theme's tokens (--gg-fire, --gg-border, --gg-dim, the two font stacks), so
 * it follows global.css. Served raw from the plugin.
 */

/* ---------- card ---------- */
.gg-acct__card {
  width: min(440px, 100%);
  margin: 0 auto;
  background: #11131a;
  border: 1px solid var(--gg-border);
  border-radius: 16px;
  padding: 28px;
}
.gg-acct__card--stack { margin-top: 18px; }

/* Social sign-in buttons (account-social.php: plain links, our markup) + the divider.
   Two classes deep on purpose: .gg-acct-modal a (below) colours every link in
   the popup fire-orange, and a button's own colour has to outrank it. */
.gg-acct__social {
  display: grid;
  gap: 10px;
}
.gg-acct__social .gg-acct__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font-family: var(--gg-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gg-acct__social .gg-acct__social-btn:hover,
.gg-acct__social .gg-acct__social-btn:focus-visible {
  background: #f2f2f2;
  border-color: #c4c4c4;
  color: #1f1f1f;
  text-decoration: none;
}
.gg-acct__social .gg-acct__social-btn--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.gg-acct__social .gg-acct__social-btn--facebook:hover,
.gg-acct__social .gg-acct__social-btn--facebook:focus-visible {
  background: #166fe5;
  border-color: #166fe5;
  color: #fff;
}
.gg-acct__social-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
/* On the blue button the mark is a white disc with a blue f. */
.gg-acct__social-btn--facebook .gg-acct__social-icon path:first-child { fill: #fff; }
.gg-acct__social-btn--facebook .gg-acct__social-icon path:last-child { fill: #1877f2; }
.gg-acct__divider {
  text-align: center;
  margin: 18px 0;
  position: relative;
  color: var(--gg-dim);
  font-family: var(--gg-font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.gg-acct__divider::before,
.gg-acct__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: var(--gg-border);
}
.gg-acct__divider::before { left: 0; }
.gg-acct__divider::after { right: 0; }
.gg-acct__divider span { background: #11131a; padding: 0 10px; position: relative; }

/* ---------- forms ---------- */
.gg-acct__form {
  display: grid;
  gap: 16px;
}
.gg-acct__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* equal, whatever the contents */
  gap: 12px 16px;
  align-items: start;
}
/* On a phone the pairs stack: a date field beside a phone field clips its own placeholder. */
@media (max-width: 520px) {
  .gg-acct__row { grid-template-columns: 1fr; }
  .gg-acct__row > div[aria-hidden="true"]:empty { display: none; } /* a half-width field's spacer */
}
.gg-acct__hint {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.gg-acct__hint[hidden] { display: none; }
/* The honeypot: off-screen, not display:none — some bots skip hidden
   fields, and every field a person cannot reach must still exist. Here,
   not in account.css, because the sign-up form is in the popup on every
   public page, where only this file loads. */
.gg-acct__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gg-acct__field {
  display: grid;
  gap: 6px;
  align-content: start; /* a hint under one field must not stretch its neighbour's box */
}
.gg-acct__field > span {
  font-family: var(--gg-font-body);
  font-size: 13px;
  color: var(--gg-dim);
}
.gg-acct__field input {
  width: 100%;
  box-sizing: border-box;
  height: 46px; /* one height for text, date and select — a date box is taller by default */
  line-height: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gg-border);
  background: #0b0d14;
  color: #fff;
  font-size: 15px;
  font-family: var(--gg-font-body);
}
.gg-acct__field input:disabled { opacity: 0.6; }
.gg-acct__field input:focus {
  outline: none;
  border-color: var(--gg-fire);
  box-shadow: 0 0 0 3px var(--gg-fire-soft);
}
/* A field that sets display beats the browser's own [hidden] rule — the
   same trap as .gg-bk__field[hidden] on Book Now. My Gridzone's password field
   is rendered hidden and shown only when the email is being changed. */
.gg-acct__field[hidden] { display: none !important; }
.gg-acct__ferr{color:#ffb4b4;font-size:13px;line-height:1.3} /* a few words above the field an error names (owner, 2026-09-30) */
.gg-acct__ferr[hidden]{display:none}
.gg-acct__field select {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  line-height: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gg-border);
  background: #0b0d14;
  color: #fff;
  font-size: 15px;
  font-family: var(--gg-font-body);
}
.gg-acct__field select:focus {
  outline: none;
  border-color: var(--gg-fire);
  box-shadow: 0 0 0 3px var(--gg-fire-soft);
}
/* iOS Safari keeps a date box at its own intrinsic width and height unless
   the native appearance is dropped — the shared width/height above were
   ignored, so on a phone it ran past the card and stood three lines tall.
   The value pseudo-element is what gives an EMPTY date box its height, and
   it centres the text unless told otherwise. */
.gg-acct__field input[type="date"] {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
}
.gg-acct__field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 20px;
  line-height: 20px;
}

.gg-acct__lede strong { overflow-wrap: anywhere; } /* the code step names the address; a long one must not widen the pane */
.gg-acct__lede {
  margin: 0;
  color: var(--gg-dim);
  font-family: var(--gg-font-body);
  font-size: 14px;
  line-height: 1.55;
}
.gg-acct__check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gg-dim);
  font-size: 14px;
  font-family: var(--gg-font-body);
}
/* The code step: the six digits read as one code; the resend and back are links. */
.gg-acct__codeform input[name="code"] { /* not .gg-acct__code: that is the dashboard's door-code chip in account.css, and the register page loads both */
  font-family: var(--gg-font-ui);
  font-size: 22px;
  letter-spacing: 0.3em;
  text-align: center;
}
.gg-acct__linkbtn {
  background: none;
  border: none;
  color: var(--gg-fire);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}
.gg-acct__linkbtn[disabled] { color: var(--gg-dim); cursor: default; text-decoration: none; }
/* The terms tick: the wording wraps, so the box sits on its first line. */
.gg-acct__check--terms { align-items: flex-start; line-height: 1.5; }
.gg-acct__check--terms input { flex: 0 0 auto; margin-top: 4px; }
.gg-acct__check--terms a { color: var(--gg-fire); text-decoration: underline; }
/* "I agree to all (Select all)": the convenience tick over the three below it. */
.gg-acct__check--all { font-weight: 600; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.gg-acct__btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 13px 18px;
  border: none;
  border-radius: 10px;
  background: var(--gg-fire);
  color: #1a0d00;
  font-family: var(--gg-font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.gg-acct__btn:hover { filter: brightness(1.08); }
.gg-acct__btn:active { transform: translateY(1px); }
.gg-acct__btn:disabled { opacity: 0.6; cursor: default; }
.gg-acct__btn--inline { width: auto; padding: 11px 22px; }
/* The sign-up's mobile row: the number and "Text me a code" beside it (owner, 2026-09-29). */
/* The mobile field's country dropdown beside the number (owner, 2026-10-15):
   the dropdown keeps to its own width, the number takes the rest. Both are
   the field's own controls, so they inherit the input/select look above. */
/* The dropdown is drawn as Book Now's (.gg-bk__phone-cc, book-now.css): the
   same width, the same drawn arrow, the native one dropped. */
.gg-acct__phone{display:flex;gap:8px;min-width:0;align-items:stretch}
.gg-acct__phone select{width:auto;flex:0 0 110px;padding-right:28px;cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right 10px center;background-size:10px 7px}
.gg-acct__phone select option{background:#1a1a1a;color:#fff}
.gg-acct__phone input{flex:1 1 auto;min-width:0}
/* The mobile row wraps (2026-10-15): with the country dropdown beside the
   number, the card at desktop width cannot hold dropdown + number + button
   on one line, so the button goes under them when the field would be
   squeezed below 260px, and fills the line there; beside the field it keeps
   its own width and the field takes the rest. */
.gg-acct__row--code{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end}
.gg-acct__row--code>.gg-acct__field{flex:1000 1 260px;min-width:0}
.gg-acct__btn--text{flex:1 0 auto;width:auto;height:46px;padding:0 16px;white-space:nowrap;font-size:14px}
@media (max-width:520px){.gg-acct__row--code{grid-template-columns:1fr}.gg-acct__btn--text{width:100%}}
/* Become a GridGamer: the second button under Sign in, an outline in the
   fire colour so Sign in stays the filled one (owner, 2026-09-25). Here,
   not in account.css, because the sign-in popup is on every public page. */
a.gg-acct__btn.gg-acct__btn--join,
.gg-acct a.gg-acct__btn.gg-acct__btn--join {
  display: block;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 11px 18px;
  background: transparent;
  border: 2px solid var(--gg-fire);
  color: var(--gg-fire);
}
a.gg-acct__btn.gg-acct__btn--join:hover { background: var(--gg-fire-bg, rgba(255, 122, 24, 0.1)); color: var(--gg-fire); text-decoration: none; }

/* ---------- notices ---------- */
.gg-acct__notice {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--gg-font-body);
  line-height: 1.5;
}
.gg-acct__notice.is-error {
  background: rgba(255, 70, 70, 0.12);
  border: 1px solid rgba(255, 70, 70, 0.4);
  color: #ffb4b4;
}
.gg-acct__notice.is-ok {
  background: rgba(45, 200, 120, 0.12);
  border: 1px solid rgba(45, 200, 120, 0.4);
  color: #9af0c2;
}
.gg-acct__card > .gg-acct__notice { margin-bottom: 16px; }

/* ---------- links ---------- */
.gg-acct__links,
.gg-acct__guest {
  text-align: center;
  margin: 16px 0 0;
  color: var(--gg-dim);
  font-size: 14px;
  font-family: var(--gg-font-body);
}
.gg-acct__links span { opacity: 0.4; margin: 0 6px; }

/* ---------- the sign-in popup (the header's Sign in, every public page) ---------- */
.gg-acct-modal[hidden] { display: none; }
.gg-acct-modal__pane[hidden] { display: none; }
/* The form is display:grid, which beats the browser's own [hidden] rule (the trap CLAUDE.md names): the
   sign-up form and its code step swap by the attribute, so the attribute has to mean something here. */
.gg-acct__form[hidden] { display: none; }
.gg-acct-modal {
  position: fixed;
  inset: 0;
  z-index: 10000; /* over the sticky header (50) and the store chooser (9999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gg-acct-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 14, 0.78);
  backdrop-filter: blur(3px);
}
.gg-acct-modal__panel {
  position: relative;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px); /* iOS: the toolbar is part of 100vh, so the pane's foot sat under it */
  overflow: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.gg-acct-modal__panel:focus { outline: none; }
/* The sign-up pane is wider than sign-in on a desktop (owner, 2026-10-08) — not too wide. */
.gg-acct-modal__panel.is-register { width: min(580px, 100%); }
/* "Account created successfully" (account.js showCreated). */
.gg-acct__created { text-align: center; padding: 12px 0 4px; }
.gg-acct__created-tick { width: 64px; height: 64px; fill: none; stroke: #22c55e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gg-acct__created-title { margin: 14px 0 22px; font-size: 20px; }
.gg-acct-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.gg-acct-modal__close:hover { color: #fff; }
.gg-acct-modal__title {
  margin: 0 0 6px;
  padding: 0 26px; /* clear of the close button, still centred */
  text-align: center;
  font-family: var(--gg-font-ui);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 24px;
  color: #fff;
}
.gg-acct-modal__title--solo { margin-bottom: 20px; } /* a pane with no subtitle */
.gg-acct-modal__subtitle {
  margin: 0 0 20px;
  text-align: center;
  color: var(--gg-dim);
  font-family: var(--gg-font-body);
  font-size: 14px;
}
/* The account pages scope their link colour to .gg-acct; the popup is outside it. */
.gg-acct-modal a { color: var(--gg-fire); text-decoration: none; }
.gg-acct-modal a:hover { text-decoration: underline; }
body.gg-acct-modal-open { overflow: hidden; }

/* The Welcome Reward offer on the sign-up form, and its SMS step. */
/* The sign-up popup's mobile step (here, not account.css: the popup is on every public page). */
.gg-acct__rewardstep .gg-acct__lede{margin-bottom:14px} /* room between the step's words and its first field (the email step, 2026-10-15) */
.gg-acct__offerhead{margin:0 0 4px;font-weight:700;color:#fff}
.gg-acct__phonever { margin-top: 12px; }
.gg-acct__phonever .gg-acct__form { margin-top: 8px; }
.gg-acct__phonever > .gg-acct__notice:not([hidden]) { margin-bottom: 12px; }
.gg-acct__fine{margin:6px 0 0;font-size:12px;color:var(--gg-dim)}.gg-acct__fine a{color:inherit;text-decoration:underline}
.gg-acct__btn[hidden]{display:none} /* the class sets display, which beats [hidden] */
