/* ── ProPortal Login Button ──────────────────────────────────────────────── */
/* Vanilla CSS mirror of the React <StarButton> used inside the portal.
   Same three-layer structure: an animated light orb traveling the inner
   perimeter, a dark star-dotted SVG face, and a gradient text label on
   top. Kept visually identical to the in-portal logout button so both
   entry points to the app read as the same brand element. */
.portal-login-btn {
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 9999px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  transition: filter 220ms ease, transform 160ms ease;
  --portal-btn-light: #FFFFFF;
  --portal-btn-duration: 3s;
}

.portal-login-btn:hover {
  filter: brightness(1.12);
}

.portal-login-btn:active {
  transform: scale(0.97);
}

.portal-login-btn:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: 3px;
}

/* Traveling light — orb is sized relative to button height (1:1) and
   walks the inside edge via offset-path set to the button rect. */
.portal-login-btn-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  aspect-ratio: 1;
  background: radial-gradient(
    ellipse at center,
    var(--portal-btn-light),
    transparent 55%,
    transparent
  );
  offset-path: path('M 0 0 H 180 V 46 H 0 V 0');
  offset-distance: 0%;
  animation: portal-star-btn var(--portal-btn-duration) linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Dark face with the star cutouts — rendered via an inline SVG child */
.portal-login-btn-face {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  border: 1.5px solid rgba(147, 197, 253, 0.38);
  overflow: hidden;
  pointer-events: none;
}

.portal-login-btn-face svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Gradient label on top of everything */
.portal-login-btn-label {
  position: relative;
  z-index: 10;
  display: inline-block;
  background: linear-gradient(to top, #DBEAFE, #FFFFFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes portal-star-btn {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-login-btn-light {
    animation: none;
  }
}

/* Show the desktop button area on larger screens */
.header-button.none-small-device {
  display: flex !important;
  align-items: center;
}

/* ── Mobile Nav Fix ─────────────────────────────────────────────────────── */
/* Webflow nav: hidden off-screen by default, slides in when opened.
   Uses transform instead of display to avoid fighting Webflow JS. */
