/* Phase 3.2: Auth Gate Externalized CSS (CSP-strict compliant) */
/* Root scope: .auth-gate namespace to prevent style bleed */

.auth-gate {
  background: #0b1020;
  color: #e2e8f0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  animation: fadeIn 0.6s ease-in;
}

.auth-gate::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

html {
  overflow-y: scroll;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-gate__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 64px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glowPulse 4s ease-in-out infinite;
  margin: 0 0 30px 0;
  text-align: center;
}

@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(124,58,237,0.4), 0 0 24px rgba(6,182,212,0.2); }
  50% { text-shadow: 0 0 14px rgba(124,58,237,0.8), 0 0 38px rgba(6,182,212,0.5); }
}

.auth-gate__form {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-gate__input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #1f2a44;
  background: #111827;
  color: #e2e8f0;
  width: 240px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-gate__input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6,182,212,0.4);
  outline: none;
}

.auth-gate__button {
  margin-top: 18px;
  width: 240px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border: none;
  color: white;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.auth-gate__button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-gate__msg {
  color: #ef4444;
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
}

.auth-gate__footer {
  margin-top: 30px;
  font-size: 12px;
  color: #64748b;
  opacity: 0.8;
  text-align: center;
}

@media (max-width: 768px) {
  .auth-gate__title { font-size: 48px; }
  .auth-gate__input,
  .auth-gate__button { width: 280px; }
}
