:root {
  --green: #8cc63f;
  --bg: #0a0f0a;
  --text: #f2f5f0;
  --muted: rgba(242, 245, 240, 0.72);
}

* { box-sizing: border-box; margin: 0; }

body {
  min-height: 100vh;
  font-family: "Kumbh Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
}

/* --- Background video + overlay --- */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 5, 0.65);
  z-index: -1;
}

/* --- Split-panel layout --- */
.layout {
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
}

.intro { flex: 1 1 380px; }

.logo {
  width: 220px;
  max-width: 60%;
  margin-bottom: 40px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

h2 { font-weight: 600; }

input, button { font-family: inherit; }

.intro p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* --- Signup card --- */
.card {
  flex: 0 1 400px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card h2 { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.85rem;
  margin: 14px 0 6px;
  color: var(--muted);
}

.req { color: var(--green); }
.opt { opacity: 0.6; font-size: 0.75rem; }

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: transparent;
}

button {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #10180a;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.6; cursor: wait; }

.form-message {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin-top: 12px;
}

.form-message.is-error { color: #ff8a80; }

.thanks h2 { color: var(--green); }
.thanks p { color: var(--muted); margin-top: 8px; }

/* --- Mobile: stack panels --- */
@media (max-width: 820px) {
  .layout {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 40px;
  }
  .logo { margin: 0 auto 28px; }
  .card { width: 100%; text-align: left; }
}

/* --- Admin signup viewer --- */
body.admin { background: var(--bg); }

.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* The brand lockup is a wide horizontal image; size it by height so it
   never overflows the viewport regardless of its intrinsic pixel width. */
.admin-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 70%;
  margin-bottom: 32px;
}

.admin-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.admin-head-row h1 { font-size: 1.5rem; font-weight: 600; }

.admin-download {
  background: var(--green);
  color: #10180a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
}
.admin-download:hover { filter: brightness(1.08); }

.admin-empty { color: var(--muted); margin-top: 24px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 8px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  word-break: break-word;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: var(--bg);
  color: var(--green);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom-color: rgba(140, 198, 63, 0.4);
}

.admin-table td:last-child { color: var(--muted); white-space: nowrap; }

.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
