/* NXP Fellowship — access gate styles */
html.nxp-locked, html.nxp-locked body { overflow: hidden; }
html.nxp-locked body > *:not(#nxp-gate) { display: none !important; }

#nxp-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0b0e23;
  color: #eef2fb;
  font-family: "General Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}

#nxp-gate .nxp-gate-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47,111,235,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,111,235,0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
  pointer-events: none;
}

#nxp-gate .nxp-gate-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 40px 34px 34px;
  border: 1px solid rgba(120,150,220,0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22,28,42,0.92), rgba(14,18,28,0.96));
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}

#nxp-gate .nxp-gate-logo {
  display: block;
  height: 54px;
  width: auto;
  margin: 0 auto 22px;
}

#nxp-gate .nxp-gate-title {
  margin: 0 0 8px;
  font-family: "Zodiak", Georgia, serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
}

#nxp-gate .nxp-gate-sub {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #aeb9d4;
}

#nxp-gate .nxp-gate-form { display: flex; flex-direction: column; gap: 12px; }

#nxp-gate .nxp-gate-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,150,220,0.28);
  border-radius: 11px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#nxp-gate .nxp-gate-input::placeholder { color: #6f7d9e; }
#nxp-gate .nxp-gate-input:focus {
  border-color: #2f6feb;
  box-shadow: 0 0 0 3px rgba(47,111,235,0.22);
}

#nxp-gate .nxp-gate-btn {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #1f52c4;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
#nxp-gate .nxp-gate-btn:hover { background: #2f6feb; }
#nxp-gate .nxp-gate-btn:active { transform: translateY(1px); }

#nxp-gate .nxp-gate-error {
  margin: 14px 0 0;
  font-size: 13px;
  color: #ff8a8a;
}

#nxp-gate .nxp-gate-card.nxp-shake { animation: nxp-shake 0.4s; }
@keyframes nxp-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  #nxp-gate .nxp-gate-card.nxp-shake { animation: none; }
}
