@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --flame: #e31e24;
  --ink: #0b0b0d;
  --ink-2: #141418;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: #9ca3af;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(220, 38, 38, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(220, 38, 38, 0.18), transparent 60%),
    var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Gate ---------- */

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}

.gate__flame {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 36px 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: rise 0.6s ease-out both;
}

.card__logo { display: block; width: 210px; max-width: 70%; margin: 0 auto 28px; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.card h1 { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }

.card p.lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 28px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #d1d5db;
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder { color: #6b7280; }

.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.field input.code { text-transform: uppercase; letter-spacing: 0.12em; }

.btn {
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  padding: 15px 18px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.error {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13px;
  color: #f87171;
  text-align: center;
}

.shake { animation: shake 0.4s; }

.card__foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* ---------- Event page ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
}

.topbar img { height: 36px; }

.topbar__right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }

.link-btn {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}

.link-btn:hover { border-color: var(--red); color: #fff; }

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
  animation: rise 0.6s ease-out both;
}

.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.1; margin: 0 0 18px; }
.hero h1 span { color: var(--red); }
.hero p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 620px; margin: 0 auto; }

.content {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 48px 24px;
  text-align: center;
  color: #6b7280;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

@media (max-width: 480px) {
  .card { padding: 32px 22px 26px; }
  .topbar { padding: 16px 18px; }
  .topbar__right span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
