/* Hollowcrown gate pages (login, pre-registration), built from Dashboard-Drive\Website Design\Login Page.jpg.
   The scene is the mock-up with its panel and corner buttons removed (assets/web/hc-gate-bg.webp);
   the panel is the mock-up's own frame and title, cleaned inside (assets/web/hc-gate-panel.webp, 988 x 1075),
   drawn with border-image so it can grow taller. Real text, boxes and buttons sit on top.
   Loaded after site.css and hc-theme.css. Written 2026-10-27 by Planning HQ. */

body.hc-theme.hc-gate { background: #07080A; min-height: 100vh; }
body.hc-theme.hc-gate::before { inset: 0; filter: none; background: url('/assets/web/hc-gate-bg.webp') center 42% / cover no-repeat; }
body.hc-theme.hc-gate::after { background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 35%, rgba(5,6,8,.55) 100%); }

.hc-theme main.gate-wrap {
  width: auto; margin: 0 !important; border: 0; border-image: none; background: none; padding: 34px 16px 96px;
  min-height: 100vh; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
}
.hc-theme main.gate-wrap::before, .hc-theme main.gate-wrap::after { content: none; }

.gate-panel {
  --pw: min(780px, 92vw); --s: calc(var(--pw) / 988);
  width: var(--pw); box-sizing: border-box; position: relative;
  border-style: solid; border-color: transparent;
  border-width: calc(var(--s) * 300) calc(var(--s) * 64) calc(var(--s) * 205);
  border-image: url('/assets/web/hc-gate-panel.webp') 300 64 205 fill / calc(var(--s) * 300) calc(var(--s) * 64) calc(var(--s) * 205) stretch;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,.75));
}
.gate-body { min-height: calc(var(--s) * 560); padding: 0 calc(var(--s) * 70) 4px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #D9D3C5; }
.gate-body h1 {
  font-family: Cinzel, serif; font-weight: 700; margin: calc(var(--s) * 6) 0 calc(var(--s) * 26); letter-spacing: 2px;
  font-size: max(1.6rem, calc(var(--s) * 64)); line-height: 1; text-transform: uppercase;
  background: linear-gradient(180deg, #FFE36B 0%, #FFC21A 55%, #D99A0B 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.9)) drop-shadow(0 0 12px rgba(255,190,30,.35));
}
.gate-body p { margin: 0 0 10px; font-size: max(.95rem, calc(var(--s) * 25)); line-height: 1.45; }
.gate-kicker { font-family: Cinzel, serif; color: #E3C27A; letter-spacing: 1.5px; text-transform: uppercase; font-size: max(.9rem, calc(var(--s) * 24)) !important; }
.gate-body .reg-clock { font-family: Cinzel, serif; color: #8FF7F0; text-shadow: 0 0 10px rgba(102,252,241,.55); font-size: max(1.2rem, calc(var(--s) * 40)); margin: 6px 0 2px; }
.gate-body .reg-count { font-family: Cinzel, serif; color: #E3C27A; font-size: 1.05rem; margin: 0 0 14px; }
.gate-body .reg-small { font-size: max(.82rem, calc(var(--s) * 20)); opacity: .8; }
.gate-body a { color: #8FF7F0; }

/* Text boxes: the cyan-glow field from the same art set */
.gate-field {
  width: 100%; box-sizing: border-box; text-align: left; margin: 0 0 12px;
  border-style: solid; border-color: transparent; border-width: 18px 30px;
  border-image: url('/assets/web/hc-btn-cyan.webp') 44 70 fill / 18px 30px stretch;
  color: #CFCABE; font-size: max(.92rem, calc(var(--s) * 25)); line-height: 1.4; padding: 2px 4px;
}
.gate-field label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.gate-field input[type=checkbox] {
  appearance: none; -webkit-appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer;
  background: #0B0D11; border: 2px solid #C5A059; box-shadow: inset 0 0 0 2px #0B0D11, 0 0 6px rgba(255,200,60,.35);
}
.gate-field input[type=checkbox]:checked { background: #FFC21A; }
.gate-field input[type=checkbox]:focus-visible { outline: 2px solid #8FF7F0; outline-offset: 2px; }
.gate-field p { margin: 0; }

/* Main gold button */
.gate-btn {
  display: flex; align-items: center; justify-content: center; text-align: center; width: 100%; box-sizing: border-box;
  min-height: max(70px, calc(var(--s) * 150)); padding: 18px 13%; margin: 10px 0 4px; cursor: pointer; border: 0; text-decoration: none;
  background: url('/assets/web/hc-btn-goldglow.webp') center / 100% 100% no-repeat;
  font-family: Cinzel, serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.15;
  font-size: max(1rem, calc(var(--s) * 34)); color: #2A1A04; text-shadow: 0 1px 0 rgba(255,240,190,.75);
  filter: drop-shadow(0 0 10px rgba(255,200,60,.4)); transition: filter .2s ease;
}
.gate-btn:hover:not([disabled]) { filter: drop-shadow(0 0 20px rgba(255,210,70,.8)); color: #000; }
.gate-btn[disabled] { cursor: default; filter: saturate(.55) brightness(.75); }
.gate-links { display: flex; justify-content: space-between; gap: 12px; width: 100%; margin: 12px 0 0; }
.gate-links a { font-family: Cinzel, serif; color: #CFC8B8; text-decoration: none; letter-spacing: .5px; text-transform: uppercase; font-size: max(.78rem, calc(var(--s) * 24)); }
.gate-links a:hover { color: #FFE08A; }
.gate-body .reg-status { min-height: 1.3em; margin: 6px 0 0; color: #E9E2D2; }
.gate-body .reg-result { border: 1px solid #C5A059; background: rgba(8,10,13,.6); padding: 10px 14px; margin: 8px 0 0; text-align: left; }

/* Corner buttons, where the mock-up had Settings and Launch Game */
.gate-corner {
  position: fixed; bottom: 18px; z-index: 5; display: inline-flex; align-items: center; justify-content: center;
  min-width: 150px; min-height: 52px; padding: 12px 30px; box-sizing: border-box; text-decoration: none;
  font-family: Cinzel, serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .95rem;
}
.gate-corner.left { left: 18px; background: url('/assets/web/hc-btn-dark.webp') center / 100% 100% no-repeat; color: #D9D3C5; }
.gate-corner.left::before { content: "\2039"; margin-right: 8px; font-size: 1.3em; line-height: .8; color: #C5A059; }
.gate-corner.right { right: 18px; min-width: 200px; background: url('/assets/web/hc-btn-cyan.webp') center / 100% 100% no-repeat; color: #E9FFFD; text-shadow: 0 0 8px rgba(102,252,241,.9), 0 1px 2px #000; filter: drop-shadow(0 0 10px rgba(102,252,241,.45)); }
.gate-corner:hover { filter: brightness(1.15) drop-shadow(0 0 14px rgba(102,252,241,.6)); }

@media (max-width: 600px) {
  .hc-theme main.gate-wrap { align-items: flex-start; padding: 18px 8px 90px; }
  .gate-body { padding: 0 6px 4px; }
  .gate-field { border-width: 14px 22px; border-image-width: 14px 22px; font-size: .88rem; }
  .gate-corner { bottom: 10px; min-width: 0; min-height: 44px; padding: 10px 20px; font-size: .8rem; }
  .gate-corner.left { left: 8px; } .gate-corner.right { right: 8px; min-width: 0; }
}
