/* gateway/assets/style.css — PTE Studio 3D Gateway */

:root {
  --accent: #E53935;
  --accent-glow: rgba(229,57,53,0.4);
  --text: #fff;
  --text-60: rgba(255,255,255,0.6);
  --text-40: rgba(255,255,255,0.4);
  --text-20: rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.07);
  --glass-border-hover: rgba(255,255,255,0.2);
  --input-bg: rgba(255,255,255,0.06);
  --error: #EF4444;
  --success: #22C55E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%; overflow: hidden;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text); background: #050508;
}

/* ─── VIDEO BG ─── */
.video-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.video-overlay {
  position: fixed; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(5,5,8,0.7) 0%,
      rgba(5,5,8,0.2) 35%,
      rgba(5,5,8,0.45) 55%,
      rgba(8,8,14,0.97) 78%,
      rgba(8,8,14,1) 100%);
}

/* ─── LAYOUT ─── */
.gate-layout {
  position: relative; z-index: 2;
  display: flex; height: 100vh; width: 100%;
}

/* ─── LEFT — brand ─── */
.gate-brand {
  flex: 1;
  display: flex; align-items: flex-end;
  padding: 6vh 5vw;
}
.brand-content { max-width: 600px; }
.brand-logo {
  width: clamp(52px, 4.5vw, 100px);
  height: clamp(52px, 4.5vw, 100px);
  margin-bottom: clamp(14px, 1.2vw, 28px);
  filter: drop-shadow(0 0 24px rgba(229,57,53,0.5));
}
.brand-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 5vw, 110px);
  letter-spacing: 0.06em; line-height: 0.95;
  margin-bottom: clamp(8px, 0.8vw, 16px);
}
.brand-title span { color: var(--accent); }
.brand-sub {
  font-size: clamp(13px, 1.1vw, 24px);
  color: var(--text-40);
  letter-spacing: 0.01em; line-height: 1.4;
}

/* ─── RIGHT — form (38vw) ─── */
.gate-form-wrap {
  width: 38vw; min-width: 400px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 0 5vw;
  position: relative;
}

.gate-card { width: 100%; max-width: 520px; }

/* ─── CARD CONTENT ─── */
.card-title {
  font-size: clamp(26px, 2.2vw, 48px);
  font-weight: 700;
  margin-bottom: clamp(6px, 0.5vw, 12px);
  letter-spacing: -0.02em;
}
.card-desc {
  font-size: clamp(14px, 1.05vw, 20px);
  color: var(--text-40);
  line-height: 1.6;
  margin-bottom: clamp(28px, 2.4vw, 52px);
}
.card-desc strong { color: var(--text-60); }

/* ─── INPUT ─── */
.input-group {
  margin-bottom: clamp(22px, 1.8vw, 36px);
}
.input-group label {
  display: block;
  font-size: clamp(10px, 0.75vw, 15px);
  color: var(--text-40);
  margin-bottom: clamp(8px, 0.6vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}
.input-group input {
  width: 100%;
  padding: clamp(16px, 1.3vw, 26px) clamp(18px, 1.4vw, 28px);
  border-radius: clamp(12px, 1vw, 20px);
  border: 1px solid var(--glass-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: clamp(16px, 1.15vw, 22px);
  outline: none;
  transition: all 0.25s;
}
.input-group input:focus {
  border-color: var(--glass-border-hover);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.input-group input::placeholder { color: var(--text-20); }

.input-code {
  text-align: center;
  font-size: clamp(28px, 2.4vw, 48px);
  letter-spacing: 0.35em;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
}

/* ─── BUTTON ─── */
.btn-action {
  width: 100%;
  padding: clamp(16px, 1.3vw, 26px);
  border: none;
  border-radius: clamp(12px, 1vw, 20px);
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  color: white;
  background: var(--accent);
  box-shadow: 0 6px 28px var(--accent-glow);
}
.btn-action:hover {
  box-shadow: 0 10px 40px var(--accent-glow);
  transform: translateY(-2px);
  filter: brightness(1.12);
}
.btn-action:active { transform: translateY(0); }
.btn-action:disabled {
  opacity: 0.4; cursor: default;
  transform: none; box-shadow: none; filter: none;
}

.btn-link {
  display: block; width: 100%; text-align: center;
  margin-top: clamp(16px, 1.3vw, 26px);
  background: none; border: none; padding: 0;
  color: var(--text-40);
  font-size: clamp(12px, 0.85vw, 16px);
  cursor: pointer; transition: color 0.2s;
}
.btn-link:hover { color: var(--text-60); }

/* ─── MESSAGES ─── */
.msg {
  text-align: center;
  font-size: clamp(12px, 0.85vw, 16px);
  margin-top: clamp(14px, 1vw, 22px);
  min-height: 20px;
}
.msg.error { color: var(--error); }
.msg.success { color: var(--success); }

.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: white; border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── STEPS ─── */
.step { display: none; }
.step.active { display: block; animation: fadeUp 0.35s ease-out; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── FOOTER ─── */
.card-footer {
  margin-top: clamp(32px, 2.5vw, 52px);
  padding-top: clamp(20px, 1.6vw, 32px);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.card-footer p {
  font-size: clamp(10px, 0.7vw, 14px);
  color: var(--text-20); line-height: 1.7;
}
.card-footer a {
  color: var(--text-40);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-footer a:hover { color: var(--text-60); }

.legal-bar {
  position: absolute;
  bottom: clamp(20px, 1.8vw, 40px);
  left: 0; right: 0;
  text-align: center;
  font-size: clamp(9px, 0.6vw, 13px);
  color: var(--text-20);
}
.legal-bar a { color: var(--text-40); text-decoration: none; }
.legal-bar a:hover { text-decoration: underline; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .gate-layout { flex-direction: column; }
  .gate-brand { flex: none; padding: 36px 24px 16px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-title { font-size: 34px; }
  .brand-sub { font-size: 13px; }
  .gate-form-wrap {
    width: 100%; min-width: unset; flex: 1;
    padding: 28px 24px; justify-content: flex-start;
    padding-top: 28px;
  }
  .gate-card { max-width: 100%; }
  .video-overlay {
    background: linear-gradient(180deg, rgba(5,5,8,0.65) 0%, rgba(5,5,8,0.35) 30%, rgba(5,5,8,0.9) 100%);
  }
}
