/**
 * Request access — exclusive event-registration landing.
 *
 * Layout: dark fullscreen with particle backdrop. Top half is a hero
 * (eyebrow + gradient title + subtitle + live countdown). Below it sits
 * the sign-in / status card. Same visual language as the timeline hero
 * but laid out as a registration page instead of a banner.
 */

.ra-body {
  min-height: 100vh;
  background: #050A18;
  color: #fff;
  font-family: var(--font-display);
  position: relative;
  overflow-x: hidden;
}

/* The HTML `hidden` attribute defaults to display:none but only when no
   other CSS sets display. Several blocks on this page (.ra-status, .ra-
   message, .ra-footer) declare display:flex, which silently un-hides
   them. Force the attribute to win. */
[hidden] { display: none !important; }

/* ── Particle backdrop ─────────────────────────── */
.ra-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ra-bg .hero__particles {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
.ra-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 25%, rgba(13, 27, 51, 0.35), rgba(5, 10, 24, 0.85)),
    linear-gradient(180deg, rgba(5,10,24,0.45) 0%, rgba(5,10,24,0.85) 100%);
}

/* ── Top bar (logo) ──────────────────────────── */
.ra-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 22px 32px;
  display: flex;
  align-items: center;
}
.ra-topbar__logo {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.92;
}
@media (max-width: 540px) {
  .ra-topbar { padding: 18px 20px; }
  .ra-topbar__logo { height: 22px; }
}

/* ── Page layout ──────────────────────────────── */
.ra-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 56px;
  gap: 36px;
}

/* ── Hero block ───────────────────────────────── */
.ra-hero {
  width: 100%;
  max-width: 760px;
  text-align: center;
  animation: ra-card-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ra-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}
.ra-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93C5FD;
  box-shadow: 0 0 12px rgba(147, 197, 253, 0.8);
  animation: ra-pulse 2.4s ease-in-out infinite;
}
@keyframes ra-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.55; }
}

.ra-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 6.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 22px;
  padding-bottom: 0.08em;
  white-space: nowrap;
}
.ra-title-text {
  display: inline-block;
}
.ra-title-grad {
  background: linear-gradient(110deg, #93C5FD 0%, #FFFFFF 35%, #FBBF24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% 100%;
  animation: ra-grad-pan 7s ease-in-out infinite;
}
@keyframes ra-grad-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.ra-subtitle {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 60ch;
  margin: 0 auto 32px;
}

/* ── Countdown ────────────────────────────────── */
.ra-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ra-countdown.is-event-now {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.45);
}
.ra-countdown.is-event-now::before {
  content: 'The Lab is open. Sign in to enter.';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FBBF24;
}
.ra-countdown.is-event-now .ra-countdown-cell,
.ra-countdown.is-event-now .ra-countdown-sep { visibility: hidden; }
.ra-countdown-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
  padding: 6px 10px;
}
.ra-countdown-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
}
.ra-countdown-lbl {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.ra-countdown-sep {
  font-family: var(--font-mono);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.25);
  margin: 0 -2px;
}
@media (max-width: 540px) {
  .ra-countdown { padding: 10px 12px; gap: 0; flex-wrap: nowrap; }
  .ra-countdown-cell { min-width: 52px; padding: 4px 6px; }
  .ra-countdown-sep { display: none; }
}

/* ── Card ─────────────────────────────────────── */
.ra-card {
  width: 100%;
  max-width: 520px;
  padding: 32px 36px 24px;
  background: rgba(8, 14, 28, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: ra-card-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 120ms;
}
@keyframes ra-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 540px) {
  .ra-card { padding: 28px 22px 20px; border-radius: 18px; }
}

.ra-card__head {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ra-card__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: #fff;
  margin-bottom: 6px;
}
.ra-card__sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  max-width: 40ch;
  margin: 0 auto;
}

/* ── Sign-in button ───────────────────────────── */
.ra-actions {
  display: flex;
  justify-content: center;
  margin: 4px 0 4px;
}
.ra-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  background: #fff;
  color: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ra-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.ra-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }
.ra-btn__arrow {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ra-btn:hover .ra-btn__arrow { transform: translateX(3px); }

/* ── Status panel (pending / denied) ──────────── */
.ra-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin: 4px 0 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
}
.ra-status__pip {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #93C5FD;
  box-shadow: 0 0 14px rgba(147, 197, 253, 0.6);
  animation: ra-pulse 2.4s ease-in-out infinite;
}
.ra-status__pip--pending { background: #FBBF24; box-shadow: 0 0 14px rgba(251, 191, 36, 0.5); }
.ra-status__pip--denied  {
  background: #F87171;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.5);
  animation: none;
}
.ra-status__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  margin-bottom: 2px;
}
.ra-status__detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* ── Admin message editor ─────────────────────── */
.ra-message {
  margin: 4px 0 22px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.ra-message__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 10px;
}
.ra-message__hint {
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 4px;
}
.ra-message__input {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 160ms ease;
}
.ra-message__input:focus {
  outline: none;
  border-color: rgba(147, 197, 253, 0.6);
}
.ra-message__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.ra-message__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.ra-message__save {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(147, 197, 253, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 8px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.ra-message__save:hover { background: rgba(147, 197, 253, 0.28); border-color: rgba(147, 197, 253, 0.7); }
.ra-message__save:disabled { opacity: 0.6; cursor: default; }

/* ── Footer ─────────────────────────────────────
   Hidden by default; only shown when a sign-out link is active (pending
   or denied state). Keeps the signed-out login card minimal — nothing
   below the Sign in button. */
.ra-footer {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ra-footer:has([data-ra-signout]:not([hidden])) { display: flex; }
.ra-footer__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 140ms ease;
}
.ra-footer__link:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ra-eyebrow-dot, .ra-status__pip, .ra-title-grad { animation: none !important; }
  .ra-hero, .ra-card { animation: none !important; }
}
