/* =========================================================
   landing-styles.css  —  UNIVERSAL (styles.php?page=landing)
   Used by BOTH the landing page (.hero / .hero-content) and the
   login page (.login-hero / .signup-box). Base, tokens, keyframes,
   and the scrolling photo wall are defined once and shared.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cell: 150px;               /* wall column width  (JS reads this) */
  --tileh: 165px;              /* wall tile height   (JS reads this) */
  --ink: #0b1430;
  --brand-1: #1e2f5e;
  --brand-2: #2856a6;
  --hair: rgba(255, 255, 255, 0.16);
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(130% 120% at 50% -10%, #2c4d94 0%, var(--brand-1) 52%, #14234a 100%);
  color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Hero shell (shared by both pages) ---------- */
.hero,
.login-hero,
.signup-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 20px;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Scrolling photo wall (shared) ---------- */
.collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;                  /* hidden until every tile is ready … */
  transition: opacity 0.9s ease;
}

.collage.ready { opacity: 1; } /* … then the whole wall fades in at once */

.col {
  flex: 1 1 0;                 /* even columns, no partials at the edges */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: scroll-y 120s linear infinite;   /* slow default; JS varies it */
  will-change: transform;
}

.tile {
  height: var(--tileh);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scrim: darkens + vignettes the wall so the card reads and edges melt
   into the brand gradient. Between wall (0) and card (2). */
.hero::before,
.login-hero::before,
.signup-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(78% 68% at 50% 46%,
      rgba(11, 20, 48, 0.28) 0%,
      rgba(11, 20, 48, 0.56) 52%,
      rgba(13, 22, 52, 0.92) 100%),
    linear-gradient(180deg, rgba(13, 22, 52, 0.42), rgba(13, 22, 52, 0.52));
}

/* ---------- Glass card (shared shell, per-page sizing) ---------- */
.hero-content,
.signup-box {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(20, 34, 74, 0.42);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 22px;
  border: 1px solid var(--hair);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  animation: fadeInUp 0.8s ease-out both;
}

.hero-content { max-width: 560px; padding: 46px 50px; }
.signup-box   { width: 100%; max-width: 420px; padding: 44px 40px; }

/* =========================================================
   LANDING page content
   ========================================================= */
.hero-content .eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(198, 216, 255, 0.85);
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
}

.hero-content .lede {
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  opacity: 0.94;
  max-width: 44ch;
  margin: 0 auto;
}

.hero-content .count {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.05;
}

.hero-content .count-num {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(92deg, #ffffff 0%, #a9c6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-content .count-label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-content .cta {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 42px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-content .cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero-content .cta:focus-visible {
  outline: 3px solid #a9c6ff;
  outline-offset: 3px;
}

/* =========================================================
   LOGIN page content
   ========================================================= */
.login-title,
.signup-box h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 8px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.login-subtitle {
  font-size: 0.98rem;
  opacity: 0.9;
  max-width: 34ch;
  margin: 0 auto 22px;
}

.error-msg {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(224, 68, 78, 0.16);
  border: 1px solid rgba(255, 120, 130, 0.42);
  color: #ffdadd;
  font-size: 0.92rem;
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.login-form input:not([type="checkbox"]),
.signup-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-form input::placeholder,
.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.login-form input:not([type="checkbox"]):focus,
.signup-form input:focus {
  outline: none;
  border-color: rgba(169, 198, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(169, 198, 255, 0.2);
}

/* Keep browser autofill on-theme instead of the default yellow */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus,
.signup-form input:-webkit-autofill,
.signup-form input:-webkit-autofill:hover,
.signup-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px rgba(26, 40, 78, 0.92) inset;
}

.login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.checkbox-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-2);
  cursor: pointer;
}

.checkbox-container label { cursor: pointer; }

.forgot-link {
  color: rgba(169, 198, 255, 0.85);
  text-decoration: none;
  transition: color 0.18s ease;
}

.forgot-link:hover,
.forgot-link:focus-visible { color: #fff; }

.glass-btn,
.signup-form button {
  width: 100%;
  margin-top: 6px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-btn:hover,
.signup-form button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.glass-btn:focus-visible,
.signup-form button:focus-visible {
  outline: 3px solid #a9c6ff;
  outline-offset: 3px;
}

.nav-links,
.signup-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

/* ---------- Shared subtle links (all pages) ---------- */
.subtle-link,
.signup-links a {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}

.subtle-link { margin-top: 20px; }         /* landing's standalone link */

.nav-links .subtle-link,
.signup-links a { margin-top: 0; }

.subtle-link:hover,
.subtle-link:focus-visible,
.signup-links a:hover,
.signup-links a:focus-visible { color: #fff; }

/* ---------- Keyframes ---------- */
@keyframes scroll-y {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }   /* one copy up → seamless loop */
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .col { animation: none; }
  .hero-content,
  .signup-box { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --cell: 108px; --tileh: 120px; }
  .hero,
  .login-hero,
  .signup-hero { padding: 32px 18px; }
  .hero-content { padding: 32px 26px; max-width: 100%; }
  .signup-box { padding: 34px 30px; }
}

@media (max-width: 560px) {
  :root { --cell: 88px; --tileh: 100px; }
  .hero-content { padding: 28px 22px; }
  .signup-box { padding: 30px 24px; }
  .hero-content .cta { width: 100%; }
}