/* ============================================
   Fast-Zero-Cross — Culture Awareness Template
   Black / white / grey. No buttons. Bold text.
   ============================================ */

:root {
  --bg: #000000;
  --text-primary: #E8E8E8;
  --text-secondary: rgba(255, 255, 255, 0.60);
  --text-dim: rgba(255, 255, 255, 0.40);
  --accent: #FFFFFF;
  --border-color: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.55);
  --font-main: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: #000000;
  /* Grid Pattern — adapted from 21st.dev dillionverma/grid-pattern.
     Clean 40px grid lines (no dots, no plus signs). Matches the CA
     template theme for FZC normal pages (login, signup, play, success).
     The welcome page (index.html) has its own Big Animated Grid. */
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  font-weight: 700;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Kill the old flow-field canvas entirely */
#flow-bg, #flow-field {
  display: none !important;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s ease;
}
a:hover {
  color: #FFFFFF;
}

/* ============================================
   Typography — big and bold
   ============================================ */

h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.0;
  color: var(--text-primary);
  text-align: center;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--text-primary);
  text-align: center;
}

h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

p {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================
   Layout
   ============================================ */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ============================================
   Card / Form — no chrome, just spacing
   ============================================ */

.card {
  width: 100%;
  max-width: 440px;
  background: transparent;
  border: none;
  padding: 32px 0;
  box-shadow: none;
}

.form-group {
  margin-bottom: 28px;
  width: 100%;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  border-radius: 0;
  padding: 14px 4px;
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input::placeholder {
  color: var(--text-dim);
  font-weight: 700;
}
.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-error {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 8px;
  min-height: 20px;
  letter-spacing: 0.3px;
}

/* ============================================
   "Button" — text only, no chrome
   ============================================ */

.btn {
  display: inline-block;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 4px;
  padding: 20px 16px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  text-align: center;
  width: 100%;
}
.btn:hover {
  letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}
.btn:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
  text-shadow: none;
  letter-spacing: 4px;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.back-link:hover { color: #FFFFFF; }

/* ============================================
   Footer — matches template
   ============================================ */

.footer {
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(232, 232, 232, 0.55);
  text-align: center;
  letter-spacing: 0.4px;
}
.footer a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
}
.footer a:hover { color: #FFFFFF; }

/* ============================================
   Misc compatibility — neutralise old classes
   ============================================ */

.hero, .landing, .page-wrapper {
  background: transparent !important;
}

/* Particle canvas from landing page — hide */
#particle-canvas {
  display: none !important;
}

/* ============================================
   Sequential fade-in
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.container > * {
  opacity: 0;
  animation: fadeUp 1.2s ease-out forwards;
}
.container > *:nth-child(1) { animation-delay: 0.2s; }
.container > *:nth-child(2) { animation-delay: 0.8s; }
.container > *:nth-child(3) { animation-delay: 1.4s; }
.container > *:nth-child(4) { animation-delay: 2.0s; }
.container > *:nth-child(5) { animation-delay: 2.6s; }
.container > *:nth-child(6) { animation-delay: 3.2s; }
@media (prefers-reduced-motion: reduce) {
  .container > * { animation: none; opacity: 1; }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
  .page-wrapper { padding: 32px 20px 24px; }
  .card { padding: 24px 0; }
  .form-input { font-size: 19px; }
}
