:root {
  --gp-blue: #071a33;
  --gp-blue-2: #0d2a50;
  --gp-gold: #d7a84f;
  --gp-text: #172033;
  --gp-muted: #667085;
  --gp-border: #e5e7eb;
  --gp-bg: #f5f7fb;
  --gp-danger: #b42318;
  --gp-success: #067647;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gp-text);
  background: var(--gp-bg);
}

.signupPage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
}

.signupVisual {
  background:
    radial-gradient(circle at 80% 20%, rgba(215, 168, 79, 0.22), transparent 32%),
    linear-gradient(145deg, #06172e, #123c70);
  color: #ffffff;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 4px solid var(--gp-gold);
}

.signupLogo img {
  height: 54px;
  width: auto;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gp-gold);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 850;
  font-size: 0.78rem;
}

.signupVisual h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.signupVisual p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-size: 1.05rem;
}

.benefitsList {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.benefitsList li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
}

.benefitsList li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gp-gold);
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 7px;
}

.signupPanel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 20px;
}

.signupCard {
  width: min(100%, 480px);
  background: #ffffff;
  border: 1px solid var(--gp-border);
  border-radius: 26px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  padding: 28px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: #eef2f7;
  margin-bottom: 24px;
}

.tabs button {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  background: transparent;
  color: var(--gp-muted);
  font-weight: 850;
  cursor: pointer;
}

.tabs button.active {
  background: #ffffff;
  color: var(--gp-blue);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.signupCard h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.muted {
  color: var(--gp-muted);
  line-height: 1.55;
}

.authForm {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.authForm label {
  display: grid;
  gap: 7px;
  color: #263247;
  font-weight: 760;
}

.authForm input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gp-border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.authForm input:focus {
  border-color: var(--gp-gold);
  box-shadow: 0 0 0 4px rgba(215, 168, 79, 0.17);
}

.termsCheck {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 600 !important;
  color: var(--gp-muted) !important;
  font-size: 0.94rem;
}

.termsCheck input {
  width: auto;
  margin-top: 3px;
}

.termsCheck a {
  color: var(--gp-blue-2);
  font-weight: 800;
}

.authForm button,
.googleBtn {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.authForm button {
  background: var(--gp-blue);
  color: #ffffff;
}

.authForm button:hover {
  background: var(--gp-blue-2);
}

.authForm button:disabled,
.googleBtn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gp-muted);
  margin: 22px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--gp-border);
  flex: 1;
}

.googleBtn {
  width: 100%;
  border: 1px solid var(--gp-border);
  background: #ffffff;
  color: var(--gp-text);
}

.googleBtn:hover {
  border-color: var(--gp-gold);
  background: #fffaf0;
}

.textButton {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--gp-blue-2);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.textButton:hover {
  text-decoration: underline;
}

.authStatus {
  margin: 18px 0 0;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.authStatus.success {
  color: var(--gp-success);
  background: #ecfdf3;
  border: 1px solid rgba(6, 118, 71, 0.24);
}

.authStatus.error {
  color: var(--gp-danger);
  background: #fef3f2;
  border: 1px solid rgba(180, 35, 24, 0.24);
}

.smallNote {
  color: var(--gp-muted);
  font-size: 0.9rem;
  margin: 18px 0 0;
}

@media (max-width: 860px) {
  .signupPage {
    grid-template-columns: 1fr;
  }

  .signupVisual {
    min-height: auto;
    gap: 42px;
    border-right: 0;
    border-bottom: 4px solid var(--gp-gold);
    padding: 28px 22px;
  }

  .signupPanel {
    padding: 24px 16px 42px;
  }

  .signupCard {
    padding: 22px;
  }
}
/* SSR sign-in page refinements: keep the auth card visible below the shared header. */
@media (min-width: 861px) {
  .signupPage {
    min-height: calc(100svh - var(--gp-auth-header-offset, 215px));
    height: auto;
  }

  .signupVisual,
  .signupPanel {
    min-height: calc(100svh - var(--gp-auth-header-offset, 215px));
  }

  .signupPanel {
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    overflow: visible;
  }

  .signupCard {
    padding: 24px;
    border-radius: 24px;
    overflow: visible;
  }

  .tabs {
    margin-bottom: 18px;
  }

  .signupCard h2 {
    font-size: 1.55rem;
  }

  .muted {
    margin-top: 0;
    margin-bottom: 0;
  }

  .authForm {
    gap: 11px;
    margin-top: 14px;
  }

  .authForm label {
    gap: 5px;
  }

  .authForm input {
    padding: 11px 14px;
  }

  .divider {
    margin: 16px 0;
  }

  .smallNote {
    margin-top: 12px;
  }
}

.tabs button {
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.tabs button.active {
  cursor: pointer;
}

/* Make the create-account flow fit without an inner right-side scrollbar. */
.signupPanel,
.signupCard {
  max-height: none !important;
  overflow: visible !important;
}

@media (min-width: 861px) {
  .signupPanel {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .signupCard {
    width: min(100%, 540px);
    padding: 18px 22px;
  }

  .tabs {
    margin-bottom: 14px;
  }

  .tabs button {
    min-height: 36px;
  }

  .signupCard h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }

  .muted {
    line-height: 1.35;
    font-size: 0.94rem;
  }

  .authForm {
    gap: 8px;
    margin-top: 10px;
  }

  .authForm label {
    gap: 4px;
    font-size: 0.92rem;
  }

  .authForm input {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .termsCheck {
    gap: 8px !important;
    font-size: 0.88rem !important;
    line-height: 1.25;
  }

  .termsCheck input {
    margin-top: 1px;
  }

  #signupBtn,
  #loginBtn,
  .googleBtn {
    min-height: 42px;
  }

  .divider {
    margin: 12px 0;
  }

  .textButton,
  .smallNote,
  .authStatus {
    margin-top: 10px;
  }
}

/* Keep the primary create-account action above optional location/Google content. */
#signupForm label:has(#signupName) { order: 1; }
#signupForm label:has(#signupEmail) { order: 2; }
#signupForm label:has(#signupPassword) { order: 3; }
#signupForm label:has(#termsAccepted) { order: 4; }
#signupBtn { order: 5; }
#signupForm label:has(#locationConsent) { order: 6; }

.tabs button:disabled {
  cursor: wait;
  opacity: 0.92;
}

.tabs button.isLoading.active {
  background: #071a33;
  color: #ffffff;
}
