/* ============================================================
   POOSTUDIO — signupcss.css
   Matches the dark minimal aesthetic of index.html
   Fonts: Bebas Neue / IM Fell English / Space Mono
   ============================================================ */

:root {
  --ink: #fbfbfb;
  --bone: #111217;
  --ash: #5a5f66;
  --dim: #f3f4f6;
  --rule: #e6e9ee;
  --accent: #1767b1;
  --green: #0a9d58;
  --cyan: #0aa3d8;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
  min-height: 100vh;
}

/* ── NOISE GRAIN ──────────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── SCROLL PROGRESS LINE ─────────────────────────────────── */
#progress-line {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg,var(--accent),#ff6b6b);
  z-index: 8999;
  transition: width 0.12s linear;
}

/* Loading overlay (shared) */
#site-loading { position: fixed; inset: 0; z-index: 10000; display:flex; align-items:center; justify-content:center; background: rgba(0,0,0,0.92); color:var(--bone); }
#site-loading.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.site-loader .spinner { width:48px;height:48px;border-radius:50%;border:4px solid rgba(255,255,255,0.08);border-top-color:var(--accent);animation:spin 1s linear infinite;margin:0 auto 12px; }
@keyframes spin{to{transform:rotate(360deg);}}

/* ── GATE / LOADING ───────────────────────────────────────── */
#gate {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 2s ease;
}

.gate-studio {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.15em;
  color: transparent;
  -webkit-text-stroke: 1px #222;
  animation: gate-breathe 4s ease-in-out infinite;
}

@keyframes gate-breathe {
  0%, 100% { -webkit-text-stroke: 1px #1a1a1a; }
  50%       { -webkit-text-stroke: 1px #3a3a3a; }
}

.gate-status {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: #2a2a2a;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-align: center;
  line-height: 2.5;
  animation: slow-appear 2s ease forwards;
}

@keyframes slow-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gate-bar-wrap {
  width: 280px;
  height: 1px;
  background: #111;
  overflow: hidden;
}

.gate-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* ── MAIN ─────────────────────────────────────────────────── */
main {
  opacity: 0;
  transition: opacity 1.5s ease;
}
main.visible { opacity: 1; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}

nav.scrolled {
  border-color: var(--rule);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: var(--bone);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--bone); }

/* ── SIGNUP SECTION ───────────────────────────────────────── */
#signup-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  padding-top: 100px;
}

/* Left — editorial */
.signup-left {
  padding: 80px 64px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--rule);
  position: sticky;
  top: 0;
  height: 100vh;
}

.section-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: #333;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 40px;
}

.signup-display {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 9vw, 7.5rem);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #2a2a2a;
  line-height: 0.92;
  margin-bottom: 40px;
  animation: title-breathe 9s ease-in-out infinite;
}

@keyframes title-breathe {
  0%, 100% { -webkit-text-stroke: 1px #222; }
  50%       { -webkit-text-stroke: 1px #2e0808; }
}

.signup-lede {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.6;
  color: var(--bone);
  margin-bottom: 24px;
}

.signup-lede em { color: var(--ash); }

.signup-body {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  line-height: 2.3;
  color: #404040;
  letter-spacing: 0.02em;
}

/* Right — form */
.signup-right {
  padding: 80px 48px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── SECURITY NOTICE ──────────────────────────────────────── */
.security-notice {
  border: 1px solid #1e1e1e;
  padding: 18px 20px;
  margin-bottom: 40px;
  background: rgba(192, 57, 43, 0.04);
  border-left: 2px solid var(--accent);
}

.notice-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.security-notice p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ash);
  line-height: 1.7;
}

/* ── FORM FIELDS ──────────────────────────────────────────── */
.form-field {
  margin-bottom: 4px;
}

.form-field label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #333;
  display: block;
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1e1e1e;
  color: var(--bone);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.3s;
}

.form-field input::placeholder { color: #2a2a2a; }
.form-field input:focus         { border-color: #444; }
.form-field input.invalid       { border-color: var(--accent); }

.field-error {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-height: 22px;
  padding: 4px 0 10px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: var(--bone);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--ink);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1a1a1a;
}

.divider span {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: #2a2a2a;
  letter-spacing: 0.3em;
}

.btn-google {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid #1e1e1e;
  color: #555;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.btn-google:hover {
  border-color: #333;
  color: var(--bone);
}

/* ── FORM FOOTER ──────────────────────────────────────────── */
.form-footer {
  margin-top: 28px;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: #282828;
  letter-spacing: 0.2em;
  text-align: center;
}

.form-footer a {
  color: #444;
  text-decoration: none;
  transition: color 0.3s;
}

.form-footer a:hover { color: var(--bone); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  padding: 70px 48px 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px #1c1c1c;
  display: block;
  line-height: 1;
  margin-bottom: 20px;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: #282828;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer-right { text-align: right; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: #2a2a2a;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--ash); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #signup-section {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .signup-left {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 60px 32px 48px;
    text-align: center;
    align-items: center;
  }

  .signup-display {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .signup-right {
    padding: 60px 32px;
  }

  nav { padding: 20px 32px; }

  footer {
    flex-direction: column;
    gap: 40px;
  }

  .footer-right { text-align: left; }
  .footer-links { align-items: flex-start; }
}

@media (max-width: 480px) {
  .signup-left,
  .signup-right {
    padding: 48px 20px;
  }
}