/* Gate — Portao de Acesso */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-container {
  width: 100%;
  max-width: 380px;
  padding: 2.5rem 2rem;
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 12px;
}

.gate-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #f1f5f9;
}

.gate-field {
  margin-bottom: 1rem;
}

.gate-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #94a3b8;
}

#token-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  background: #0f0f1a;
  border: 1px solid #3d3d5c;
  border-radius: 6px;
  color: #f1f5f9;
  outline: none;
  transition: border-color 0.2s;
}

#token-input:focus {
  border-color: #6366f1;
}

.gate-error {
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  background: #3b1219;
  border: 1px solid #7f1d1d;
  border-radius: 6px;
  color: #fca5a5;
}

.gate-btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.gate-btn:hover:not(:disabled) {
  background: #4338ca;
}

.gate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
