/* 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: #0a3065;
  color: #ffffff;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

#nxp-gate .nxp-gate-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(144,167,199,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144,167,199,0.12) 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: 44px 36px 36px;
  border: 1px solid rgba(144,167,199,0.24);
  border-radius: 0;
  background: #0e3a76;
  box-shadow: none;
}

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

#nxp-gate .nxp-gate-title {
  margin: 0 0 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
}

#nxp-gate .nxp-gate-sub {
  margin: 0 0 26px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: #7f90ad;
}

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

#nxp-gate .nxp-gate-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 15px;
  font-family: "Inter", system-ui, sans-serif;
  color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(144,167,199,0.28);
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#nxp-gate .nxp-gate-input::placeholder { color: #7f90ad; }
#nxp-gate .nxp-gate-input:focus {
  border-color: #e6813b;
  box-shadow: 0 0 0 3px rgba(230,129,59,0.22);
}

#nxp-gate .nxp-gate-btn {
  width: 100%;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0a3065;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.05s;
}
#nxp-gate .nxp-gate-btn:hover { opacity: 0.88; }
#nxp-gate .nxp-gate-btn:active { transform: translateY(1px); }

#nxp-gate .nxp-gate-error {
  margin: 14px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f19a5c;
}

#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; }
}
