.ah-login-shell,
.ah-event-gate {
  --ah-poster-cyan: #08b7c2;
  --ah-poster-blue: #197dff;
}

.ah-login-page {
  --ah-partner-content-width: 1180px;
}

/* Keep the whole partner panel below the first login viewport. Its natural
   height can then be revealed by scrolling without clipping the logos. */
.ah-login-page main {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 32px;
  margin-bottom: 0;
}

.ah-login-page .footer {
  position: static;
  bottom: auto;
  margin-top: 24px;
}

.ah-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .8fr);
  width: min(1180px, 100%);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #283a50;
  border-radius: 10px;
  background: #04080e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.ah-event-poster {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 7, 14, .06), rgba(1, 4, 9, .02) 52%, rgba(1, 5, 11, .18) 100%),
    url('event-poster-visual-v2.png?v=1') center / cover no-repeat;
}

.ah-event-poster::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: '';
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(26, 127, 255, .14) 50%, transparent 50.2%),
    radial-gradient(circle at 50% 68%, rgba(0, 141, 255, .2), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 4, 10, .52));
}

/* Login-only artwork: a square composition derived from the official poster.
   It excludes the application panel and QR code and scales without cropping. */
.ah-event-poster.is-login {
  aspect-ratio: 1;
  min-height: 0;
  background:
    linear-gradient(180deg, transparent 78%, #02060d 100%),
    #02060d url('login-poster-clean-v4.png?v=1') center / contain no-repeat;
}

.ah-event-poster.is-login::before,
.ah-event-poster.is-login .ah-event-matrix,
.ah-event-poster.is-login .ah-event-circuit,
.ah-event-poster.is-login .ah-event-year,
.ah-event-poster.is-login .ah-event-wordmark,
.ah-event-poster.is-login .ah-event-subtitle,
.ah-event-poster.is-login .ah-event-shield,
.ah-event-poster.is-login .ah-event-car {
  display: none;
}

.ah-event-matrix {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    radial-gradient(circle, rgba(0, 213, 195, .62) 0 1px, transparent 1.3px),
    linear-gradient(90deg, rgba(0, 197, 188, .07) 1px, transparent 1px),
    linear-gradient(rgba(0, 197, 188, .04) 1px, transparent 1px);
  background-size: 22px 22px, 88px 88px, 88px 88px;
  mask-image: linear-gradient(#000, transparent 54%);
}

.ah-event-circuit i {
  position: absolute;
  z-index: 1;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19, 143, 255, .72));
  box-shadow: 0 0 8px rgba(19, 143, 255, .3);
}

.ah-event-circuit i::after {
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  content: '';
  border: 1px solid #1c9cff;
  border-radius: 50%;
  background: #071323;
}

.ah-event-circuit i:nth-child(1) { top: 22%; left: -3%; transform: rotate(12deg); }
.ah-event-circuit i:nth-child(2) { top: 34%; right: -2%; transform: rotate(168deg); }
.ah-event-circuit i:nth-child(3) { top: 69%; left: -5%; transform: rotate(-8deg); }
.ah-event-circuit i:nth-child(4) { top: 76%; right: -4%; transform: rotate(189deg); }
.ah-event-circuit i:nth-child(5) { top: 48%; left: -8%; transform: rotate(4deg); }
.ah-event-circuit i:nth-child(6) { top: 53%; right: -7%; transform: rotate(177deg); }

.ah-event-year {
  position: absolute;
  z-index: 3;
  top: 27px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  color: var(--ah-poster-cyan);
}

.ah-event-year span {
  color: #8eb4c2;
  font: 9px ui-monospace, monospace;
  letter-spacing: 3px;
}

.ah-event-year strong {
  font: 750 clamp(34px, 4.3vw, 51px) / 1 ui-monospace, monospace;
  letter-spacing: -4px;
  text-shadow: 0 0 20px rgba(0, 198, 191, .28);
}

.ah-event-wordmark {
  position: absolute;
  z-index: 4;
  top: 91px;
  left: 50%;
  display: flex;
  justify-content: center;
  gap: .13em;
  width: 94%;
  transform: translateX(-50%);
  color: transparent;
  font: 900 clamp(58px, 6.8vw, 96px) / .86 Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  letter-spacing: -3px;
  text-align: center;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .42);
}

.ah-event-wordmark span {
  background: linear-gradient(180deg, #fff 8%, #92979e 43%, #f6f7f8 63%, #626873 100%);
  background-clip: text;
  filter: drop-shadow(0 9px 8px rgba(0, 0, 0, .82));
}

.ah-event-subtitle {
  position: absolute;
  z-index: 5;
  top: 185px;
  left: 50%;
  width: max-content;
  max-width: 90%;
  margin: 0;
  padding: 8px 18px;
  transform: translateX(-50%);
  border-block: 1px solid rgba(226, 237, 244, .58);
  background: rgba(1, 8, 15, .72);
  color: #f1f4f7;
  font-size: clamp(16px, 1.8vw, 23px);
  font-weight: 750;
  letter-spacing: -1px;
  text-align: center;
}

.ah-event-car {
  position: absolute;
  z-index: 2;
  inset: 34% -4% -5%;
  background:
    repeating-linear-gradient(180deg, transparent 0 23px, rgba(14, 135, 234, .09) 24px),
    linear-gradient(90deg, transparent, rgba(0, 156, 255, .12) 50%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, transparent 94%);
}

.ah-event-shield {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 37px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 78px;
  transform: translateX(-50%);
  color: #75dcff;
  font-size: 51px;
  filter: drop-shadow(0 0 16px rgba(28, 165, 255, .65));
}

.ah-event-shield span {
  position: absolute;
  color: #06111d;
  font-size: 18px;
}

.ah-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 64px);
  border-left: 1px solid #283747;
  background: linear-gradient(135deg, rgba(14, 36, 56, .38), transparent 36%), #060a10;
}

.ah-login-header {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid #253244;
}

.ah-login-header h1 {
  margin: 9px 0 8px;
  color: #f2f5f8;
  font-size: 30px;
  font-weight: 650;
}

.ah-login-header p {
  margin: 0;
  color: #93a5b9;
  font-size: 13px;
}

.ah-login-panel label { margin-bottom: 8px; }

.ah-login-panel .form-control {
  min-height: 46px;
  border-color: #304159;
  background: #080e16 !important;
}

.ah-login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.ah-login-actions a { color: #8fa8c8; font-size: 12px; }
.ah-login-actions .btn { min-width: 112px; margin-left: auto; }

.ah-event-gate {
  display: none;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  min-height: calc(100vh - 92px);
  margin-left: var(--ah-sidebar-width, 184px);
  padding: 34px 42px 48px;
  background: #000;
}

html.ah-event-locked .ah-event-guarded main,
html.ah-event-locked .ah-event-guarded > .footer { display: none; }
html.ah-event-locked .ah-event-gate { display: grid; }

.ah-event-gate .ah-event-poster {
  min-height: 620px;
  border: 1px solid #23415c;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.ah-event-gate-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 66px);
  border: 1px solid #23415c;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(145deg, #0e1b27, #05090f 52%);
}

.ah-event-gate-panel h1 {
  margin: 10px 0;
  color: #f0f5fa;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -1.5px;
}

.ah-event-gate-panel > p {
  margin: 0;
  color: #95a6b9;
  line-height: 1.8;
}

.ah-event-gate-time {
  display: grid;
  gap: 7px;
  margin: 42px 0;
  padding: 24px 0;
  border-block: 1px solid #27394d;
}

.ah-event-gate-time small,
.ah-event-gate-time span {
  color: #8da2b8;
  font: 11px ui-monospace, monospace;
}

.ah-event-gate-time strong {
  color: #e9f7ff;
  font: 650 clamp(42px, 6vw, 72px) / 1 ui-monospace, monospace;
  letter-spacing: -4px;
  text-shadow: 0 0 24px rgba(9, 177, 195, .28);
}

.ah-event-gate-actions { display: flex; gap: 10px; }

@media (max-width: 980px) {
  .ah-login-shell,
  .ah-event-gate { grid-template-columns: 1fr; }

  .ah-login-shell .ah-event-poster,
  .ah-event-gate .ah-event-poster {
    min-height: 520px;
    border: 1px solid #23415c;
    border-radius: 10px 10px 0 0;
  }

  .ah-login-shell .ah-event-poster.is-login {
    aspect-ratio: 1;
    min-height: 0;
    background-size: contain;
  }

  .ah-event-gate-panel {
    border: 1px solid #23415c;
    border-top: 0;
    border-radius: 0 0 10px 10px;
  }
}

@media (max-width: 767px) {
  .ah-login-shell { min-height: 0; }
  .ah-login-shell .ah-event-poster,
  .ah-event-gate .ah-event-poster { min-height: 430px; }
  .ah-login-shell .ah-event-poster.is-login { min-height: 0; }
  .ah-event-wordmark { top: 88px; font-size: clamp(48px, 13vw, 72px); }
  .ah-event-subtitle { top: 158px; font-size: 14px; }
  .ah-event-shield { bottom: 22px; }
  .ah-login-panel,
  .ah-event-gate-panel { padding: 30px 24px 34px; }
  .ah-event-gate { min-height: auto; margin-left: 0; padding: 20px 17px 38px; }
}
