/* ==========================================================================
   gate.css — Portal Access Gate Modal
   Strict adherence to Design System:
   - Canvas: #050505
   - Card: #0D0D0E, 1px solid #1E293B, 3px top-border #10B981
   - Sub-panels / Inputs: #000000, 1px solid #1E293B
   - Heading: "Instrument Serif"
   - Body copy: "Inter"
   - Button: Flat #10B981, bold uppercase #050505 in "JetBrains Mono", 6px radius
   ========================================================================== */

#gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#gate-card {
  width: min(460px, 94vw);
  background: #0D0D0E;
  border: 1px solid #1E293B;
  border-top: 3px solid #10B981;
  border-radius: 8px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

#gate-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 6px;
  background: #10B981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050505;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
}

#gate-card h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  color: #F8FAFC;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

#gate-card .gsub {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #64748B;
  font-size: 12px;
  margin: 0 0 24px;
  line-height: 1.6;
}

#gate-input,
#gate-card input[type=text],
#gate-card input[type=password] {
  width: 100%;
  background: #000000;
  border: 1px solid #1E293B;
  border-radius: 6px;
  color: #E2E8F0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13.5px;
  text-align: left;
  padding: 12px 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

#gate-input:focus,
#gate-card input[type=text]:focus,
#gate-card input[type=password]:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

#gate-card label {
  display: block;
  text-align: left;
  color: #64748B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

#gate-btn {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #10B981;
  border-radius: 6px;
  background: #10B981;
  color: #050505;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#gate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.55);
}

#gate-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

#gate-err {
  color: #EF4444;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  margin-top: 10px;
  min-height: 18px;
}

#gate-foot {
  color: #64748B;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  margin-top: 22px;
}

#gate-foot b {
  color: #10B981;
}
