/* ============================================================
   Login popup (login idea: 1-side-panel). Self-contained: brand tokens are
   set on the container so it doesn't depend on this page's names.
   ============================================================ */
.lg {
  --navy: #123854; --navy-dark: #0e2c43; --blue: #359ff4; --blue-light: #80d6fc;
  --grey: #5b656f; --text: #222222; --maxw: 1140px;
  --font-head: "Montserrat", sans-serif; --font-body: "Lato", sans-serif;
}
html.login-lock { overflow: hidden; }
/* every idea uses one container: hidden until main.js adds .open */
.lg { position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s linear .45s; }
.lg.open { visibility: visible; transition-delay: 0s; }
.lg [hidden] { display: none !important; }
.lg h2 { margin: 0; }
.lg a:focus-visible, .lg button:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.lg__arw { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; transition: transform .25s ease; }
@media (prefers-reduced-motion: reduce) {
  .lg, .lg * { transition-duration: 0s !important; transition-delay: 0s !important; }
}
.lg { z-index: 2500; }

/* ===================== LOGIN IDEA 1: SIDE PANEL =====================
   Right slide-in panel (Tribe & Purpose / WPA menu panel timing). */
.lg__overlay { position: absolute; inset: 0; background: rgba(9, 24, 38, .55); opacity: 0; transition: opacity .4s ease; }
.lg.open .lg__overlay { opacity: 1; }
.lg__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 24px 32px 36px; background: var(--navy-dark); color: #fff;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.lg.open .lg__panel { transform: none; }
.lg__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.lg__head img { width: 168px; height: auto; }
.lg__close {
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px;
  background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.lg__panel h2 { font: 800 28px/1.15 var(--font-head); color: #fff; margin-bottom: 24px; }
.lg__row {
  display: flex; align-items: center; justify-content: space-between; min-height: 64px;
  border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; font: 700 17px/1.2 var(--font-head);
}
.lg__row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lg__row .lg__arw { color: var(--blue); }
@media (hover: hover) {
  .lg__row:hover { color: var(--blue-light); }
  .lg__row:hover .lg__arw { transform: translateX(5px); }
  .lg__close:hover { border-color: var(--blue); background: var(--blue); }
}
.lg__notes { margin-top: auto; padding-top: 40px; }
.lg__notes p { font-size: 15px; line-height: 1.6; color: #b9c7d4; margin: 0 0 14px; }
.lg__notes a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .lg__panel { padding: 20px 20px 28px; } .lg__panel h2 { font-size: 24px; } }
