/* ═══════════════════════════════════════════
   GATEKEEPER — Auth Gate Styles
   ═══════════════════════════════════════════ */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at 30% 20%, #0a1628 0%, #050c14 50%, #020608 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.gate-overlay--hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.gate-box {
  width: 100%;
  max-width: 440px;
  position: relative;
}

/* ─── Logo / Header ──────────────────── */
.gate-header {
  text-align: center;
  margin-bottom: 40px;
}

.gate-header__icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  animation: gate-pulse 3s ease-in-out infinite;
}

@keyframes gate-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.gate-header__title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #e0f7fa;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.gate-header__title .accent {
  color: #00dcd0;
}

.gate-header__sub {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: #5a8a8f;
  font-style: italic;
}

/* ─── Tab Switcher ───────────────────── */
.gate-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 220, 208, 0.12);
}

.gate-tab {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(5, 12, 20, 0.8);
  color: #5a8a8f;
}

.gate-tab:hover {
  color: #7ab0b5;
}

.gate-tab--active {
  background: rgba(0, 220, 208, 0.08);
  color: #00dcd0;
}

/* ─── Panels ─────────────────────────── */
.gate-panel {
  display: none;
}

.gate-panel--active {
  display: block;
  animation: gate-fade-in 0.3s ease;
}

@keyframes gate-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Form Elements ──────────────────── */
.gate-field {
  margin-bottom: 16px;
}

.gate-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #5a8a8f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.gate-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 220, 208, 0.12);
  background: rgba(5, 12, 20, 0.8);
  color: #e0f7fa;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.gate-input::placeholder {
  color: #3a5a5f;
}

.gate-input:focus {
  border-color: rgba(0, 220, 208, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 220, 208, 0.06);
}

.gate-input--error {
  border-color: #ff4d4d;
}

/* ─── Buttons ────────────────────────── */
.gate-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 8px;
}

.gate-btn--primary {
  background: linear-gradient(135deg, #00dcd0, #009e96);
  color: #050c14;
}

.gate-btn--primary:hover {
  background: linear-gradient(135deg, #00ffe6, #00bfb3);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 220, 208, 0.2);
}

.gate-btn--primary:active {
  transform: translateY(0);
}

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

/* ─── Messages ───────────────────────── */
.gate-msg {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}

.gate-msg--error {
  color: #ff6b6b;
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.15);
}

.gate-msg--success {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.gate-msg--info {
  color: #7ab0b5;
  background: rgba(0, 220, 208, 0.05);
  border: 1px solid rgba(0, 220, 208, 0.1);
}

/* ─── IP display ─────────────────────── */
.gate-ip {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #3a5a5f;
  text-align: center;
  margin-top: 24px;
}

.gate-ip code {
  color: #5a8a8f;
  background: rgba(0, 220, 208, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* ─── Lockout warning ────────────────── */
.gate-lockout {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #ff6b6b;
  text-align: center;
  margin-top: 12px;
}

/* ─── Loading spinner ────────────────── */
.gate-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(5, 12, 20, 0.3);
  border-top-color: #050c14;
  border-radius: 50%;
  animation: gate-spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ─── Divider ────────────────────────── */
.gate-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.gate-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(0, 220, 208, 0.08);
}

.gate-divider__text {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #3a5a5f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Footer note ────────────────────── */
.gate-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 220, 208, 0.05);
}

.gate-footer__text {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #2a4a4f;
}

/* ─── Responsive ─────────────────────── */
@media (max-width: 480px) {
  .gate-header__title {
    font-size: 24px;
  }
  .gate-tab {
    font-size: 11px;
    padding: 10px 12px;
  }
}
