/* ═══════════════════════════════════════════════════════════════════
   License Gate — auth-gate.css
   Add <link rel="stylesheet" href="auth-gate.css"/> after styles.css
═══════════════════════════════════════════════════════════════════ */

/* Hide the real app entirely until unlocked */
body.sf-locked main,
body.sf-locked #selection-tray,
body.sf-locked #zip-overlay,
body.sf-locked header .header-links { display: none !important; }

body.sf-unlocked #license-gate { display: none !important; }

#license-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(124,106,247,0.12), transparent 55%),
    var(--bg);
  padding: 1.5rem;
}

.gate-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}

.gate-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 1.5rem;
}

.gate-card h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}

.gate-card .gate-sub {
  color: var(--muted2);
  font-size: 13px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.gate-field { margin-bottom: 1rem; }
.gate-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.gate-field input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
}
.gate-field input:focus { border-color: var(--accent); }

#gate-error {
  display: none;
  background: rgba(245,101,101,0.08);
  border: 1px solid rgba(245,101,101,0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #fc9696;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.gate-submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-submit-btn:hover { background: var(--accent2); }
.gate-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gate-footnote {
  margin-top: 1.25rem;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
