:root {
  --bg: #0d0f12;
  --surface: #13161b;
  --surface2: #0f1215;
  --border: #1e2330;
  --accent: #4ade80;
  --accent-dim: #1a3d2a;
  --accent-glow: rgba(74, 222, 128, 0.08);
  --text: #e2e8f0;
  --text-muted: #4a5568;
  --text-dim: #718096;
  --error: #f87171;
  --warning: #f59e0b;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Syne', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,222,128,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74,222,128,0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.beta-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 24px;
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 11px;
  color: #fbbf24;
  letter-spacing: 0.06em;
  z-index: 200;
  backdrop-filter: blur(8px);
}

.top-bar {
  position: fixed;
  top: 33px;
  left: 0;
  right: 0;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(13,15,18,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.top-bar-left .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.top-bar-right {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.container {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  position: relative;
  z-index: 1;
  margin-top: 80px;
  animation: fadeIn 0.5s ease both;
}

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

.logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.logo svg { color: var(--accent); }

.logo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--warning);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.logo-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto;
}

.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), transparent);
}

.gate-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.gate-icon {
  width: 38px;
  height: 38px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  flex-shrink: 0;
}

.gate-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.gate-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  outline: none;
  letter-spacing: 0.1em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder {
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input[type="text"].error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(248,113,113,0.08);
}

.error-msg {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(248,113,113,0.07);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--error);
  margin-bottom: 16px;
  animation: shake 0.3s ease;
}

.error-msg.show { display: flex; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #0a1a0f;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.99); }

.btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.gate-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.gate-footer a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
}

.gate-footer a:hover { opacity: 1; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-dim);
}

.feature svg { color: var(--accent); flex-shrink: 0; }

.footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  padding-bottom: 24px;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
}

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