/* gate.css - Date-based Access Gate for Finger Nexus AI CRM v2.02 */

#accessGateOverlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, sans-serif;
  color: #f8fafc;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#accessGateOverlay.gate-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.gate-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
}

.gate-glow-one {
  top: -10%;
  right: -5%;
  background: #6366f1;
}

.gate-glow-two {
  bottom: -10%;
  left: -5%;
  background: #8b5cf6;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
              0 0 50px rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(24px);
  text-align: center;
  z-index: 2;
}

.gate-card.shake {
  animation: gateShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes gateShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.gate-brand {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: white;
  margin: 0 auto 14px;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45);
}

.gate-release {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a5b4fc;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gate-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.gate-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 24px;
}

.gate-form {
  text-align: left;
}

.gate-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.gate-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.gate-input {
  width: 100%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.gate-input::placeholder {
  font-size: 13px;
  letter-spacing: normal;
  font-weight: 500;
  color: #64748b;
}

.gate-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
  background: rgba(30, 41, 59, 0.95);
}

.gate-input.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
}

.gate-input.success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
}

.gate-error-text {
  font-size: 12px;
  color: #f87171;
  font-weight: 600;
  margin-top: 6px;
  display: none;
  text-align: center;
}

.gate-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.gate-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.6);
  transform: translateY(-1px);
}

.gate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gate-hint {
  font-size: 11px;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 18px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.gate-security-note {
  font-size: 11px;
  color: #64748b;
  margin-top: 16px;
  line-height: 1.5;
  text-align: center;
}
