/* PiTown theme – light, clean, campground feel */

:root {

  --pt-green: #065f46;

  --pt-green-dark: #064e3b;

  --pt-cream: #f9fafb;

  --pt-gold: #facc15;

  --pt-text: #111827;

  --pt-muted: #6b7280;

}



html, body {

  height: 100%;

}



body {

  background: var(--pt-cream);

  color: var(--pt-text);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",

               Roboto, Helvetica, Arial, sans-serif;

}



/* NAVBAR -------------------------------------------------------- */

.pt-navbar {

  background: #ffffff;

  border-bottom: 1px solid rgba(15, 23, 42, 0.06);

}



.pt-navbar .navbar-brand {

  display: flex;

  align-items: center;

  gap: .5rem;

  font-weight: 800;

  letter-spacing: -.03em;

  color: var(--pt-green-dark);

}



.pt-navbar .navbar-brand span.logo-dot {

  width: 28px;

  height: 28px;

  border-radius: 999px;

  background: radial-gradient(circle at 30% 30%, #bbf7d0, #22c55e);

  border: 2px solid rgba(22, 163, 74, 0.5);

}



.pt-navbar .nav-link {

  font-weight: 500;

  color: #111827;

}



.pt-navbar .nav-link:hover,

.pt-navbar .nav-link:focus,

.pt-navbar .nav-link.active {

  color: var(--pt-green-dark);

}



.pt-navbar .btn-outline-pt {

  border-radius: 999px;

  border-color: rgba(15, 23, 42, 0.12);

  color: #111827;

  padding-inline: 1rem;

}



.pt-navbar .btn-outline-pt:hover {

  border-color: var(--pt-green-dark);

  color: var(--pt-green-dark);

  background: rgba(16, 185, 129, 0.06);

}



.pt-navbar .btn-pt-primary {

  border-radius: 999px;

  background: var(--pt-green-dark);

  border-color: var(--pt-green-dark);

  color: #f9fafb;

  padding-inline: 1.3rem;

}



.pt-navbar .btn-pt-primary:hover {

  background: #022c22;

  border-color: #022c22;

}



/* MAIN LAYOUT --------------------------------------------------- */

.pt-main {

  min-height: calc(100vh - 72px);

}



/* Auth / member pages: give them a soft background */

.bg-ledger {

  background: radial-gradient(circle at top left, #bbf7d0 0, #f9fafb 40%, #e0f2fe 100%);

}



/* Card styling used in members/login pages */

.card-elevated {

  border-radius: 1rem;

  border: 1px solid rgba(15, 23, 42, 0.06);

  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);

}



/* Hero used on members area */

.member-hero {

  background: #0f172a;

  color: #fff;

}



/* Optional: tighten alerts for login messages */

.alert {

  border-radius: .75rem;

}


/* RC52 tenant module access gate ---------------------------------------- */
.pte-access-gate {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: min(720px, calc(100vh - 150px));
  padding: clamp(3rem, 8vw, 7rem) max(1.5rem, calc((100vw - 1180px) / 2));
  overflow: hidden;
  color: #16213e;
  background:
    radial-gradient(circle at 12% 10%, rgba(67, 56, 202, .10), transparent 31%),
    radial-gradient(circle at 90% 88%, rgba(14, 165, 233, .13), transparent 34%),
    linear-gradient(145deg, #fbfdff 0%, #f7f5ff 50%, #eefaff 100%);
}
.pte-access-gate__glow {
  position: absolute;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(16px);
  opacity: .45;
}
.pte-access-gate__glow--one { top: -12rem; left: 34%; background: rgba(124, 58, 237, .18); }
.pte-access-gate__glow--two { right: -11rem; bottom: -12rem; background: rgba(14, 165, 233, .2); }
.pte-access-gate__content { align-self: center; max-width: 670px; }
.pte-access-gate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.25rem;
  padding: .55rem .9rem;
  border: 1px solid rgba(99, 102, 241, .22);
  border-radius: 999px;
  color: #5b21b6;
  background: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pte-access-gate h1 {
  margin: 0;
  color: #101936;
  font-size: clamp(2.75rem, 6vw, 5.7rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: .98;
}
.pte-access-gate h1 span {
  color: transparent;
  background: linear-gradient(105deg, #2563eb 0%, #7c3aed 52%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.pte-access-gate__lead {
  max-width: 620px;
  margin: 1.65rem 0 0;
  color: #52617f;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}
.pte-access-gate__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.pte-access-gate__primary,
.pte-access-gate__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pte-access-gate__primary {
  color: #fff;
  background: linear-gradient(115deg, #2563eb, #7c3aed);
  box-shadow: 0 14px 30px rgba(79, 70, 229, .25);
}
.pte-access-gate__secondary {
  color: #303b5b;
  border-color: #d9def0;
  background: rgba(255, 255, 255, .76);
}
.pte-access-gate__primary:hover,
.pte-access-gate__primary:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(79, 70, 229, .31); }
.pte-access-gate__secondary:hover,
.pte-access-gate__secondary:focus-visible { color: #1f2a48; border-color: #9aa7d1; transform: translateY(-2px); }
.pte-access-gate__privacy { margin-top: 1.15rem; color: #66738e; font-size: .9rem; }
.pte-access-gate__preview {
  align-self: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(194, 203, 226, .78);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 28px 70px rgba(42, 55, 100, .14);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.pte-access-gate__preview-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #273554; font-weight: 850; }
.pte-access-gate__status { padding: .35rem .62rem; border-radius: 999px; color: #047857; background: #dff9ee; font-size: .72rem; }
.pte-access-gate__study-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0;
  padding: 1.1rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(120deg, #1d4ed8, #6d28d9 62%, #0891b2);
  box-shadow: 0 18px 35px rgba(67, 56, 202, .2);
}
.pte-access-gate__study-card strong,
.pte-access-gate__study-card small { display: block; }
.pte-access-gate__study-card small { margin-top: .2rem; color: rgba(255, 255, 255, .78); }
.pte-access-gate__study-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .16); font-size: 1.45rem; }
.pte-access-gate__features { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.pte-access-gate__features li { display: flex; gap: .75rem; padding: .85rem; border: 1px solid #edf0f7; border-radius: 15px; background: rgba(250, 251, 255, .75); }
.pte-access-gate__features li > span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #047857; background: #dcfce7; font-weight: 900; }
.pte-access-gate__features strong,
.pte-access-gate__features small { display: block; }
.pte-access-gate__features strong { color: #273554; }
.pte-access-gate__features small { margin-top: .16rem; color: #71809b; }

/* RC60 reusable tenant-level member gate. Uses each tenant's saved logo and
   signup background without inline style dependencies. */
.pte-access-gate--tenant {
  min-height: min(760px, calc(100vh - 120px));
  color: #f8fbff;
  background: #07111f;
}
.pte-access-gate--tenant .pte-access-gate__brand-bg,
.pte-access-gate--tenant .pte-access-gate__brand-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.pte-access-gate--tenant .pte-access-gate__brand-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pte-access-gate--tenant .pte-access-gate__brand-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 8, 20, .94) 0%, rgba(2, 8, 20, .82) 46%, rgba(2, 8, 20, .46) 100%),
    linear-gradient(0deg, rgba(2, 8, 20, .50), rgba(2, 8, 20, .18));
}
.pte-access-gate--tenant .pte-access-gate__tenant-logo {
  display: block;
  width: min(160px, 36vw);
  max-height: 110px;
  margin: 0 0 1.25rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28));
}
.pte-access-gate--tenant .pte-access-gate__eyebrow {
  color: #dbeafe;
  border-color: rgba(147, 197, 253, .30);
  background: rgba(15, 23, 42, .58);
}
.pte-access-gate--tenant h1 { color: #fff; text-shadow: 0 8px 28px rgba(0,0,0,.32); }
.pte-access-gate--tenant h1 span {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.pte-access-gate--tenant .pte-access-gate__lead,
.pte-access-gate--tenant .pte-access-gate__privacy { color: #d4deed; }
.pte-access-gate--tenant .pte-access-gate__secondary {
  color: #f8fbff;
  border-color: rgba(255,255,255,.28);
  background: rgba(15, 23, 42, .56);
}
.pte-access-gate--tenant .pte-access-gate__secondary:hover,
.pte-access-gate--tenant .pte-access-gate__secondary:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.pte-access-gate--tenant .pte-access-gate__preview {
  color: #eaf2ff;
  border-color: rgba(148, 163, 184, .22);
  background: rgba(5, 15, 31, .78);
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
}
.pte-access-gate--tenant .pte-access-gate__preview-top,
.pte-access-gate--tenant .pte-access-gate__features strong { color: #f8fbff; }
.pte-access-gate--tenant .pte-access-gate__features li {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .66);
}
.pte-access-gate--tenant .pte-access-gate__features small { color: #b9c6d9; }

@media (max-width: 900px) {
  .pte-access-gate { grid-template-columns: 1fr; min-height: auto; padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .pte-access-gate__content { max-width: 760px; }
  .pte-access-gate__preview { max-width: 760px; }
}
@media (max-width: 560px) {
  .pte-access-gate { padding-inline: 1rem; }
  .pte-access-gate h1 { letter-spacing: -.045em; }
  .pte-access-gate__actions { display: grid; }
  .pte-access-gate__primary,
  .pte-access-gate__secondary { width: 100%; }
  .pte-access-gate__preview-top { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .pte-access-gate__primary,
  .pte-access-gate__secondary { transition: none; }
}
