@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   BO2 EMBLEM TOOLKIT — LOGIN PAGE: CRIMSON RED OPS (STEALTH BLACK OPS THEME)
   ========================================================================== */

:root {
  --bg:             #07070b;
  --bg-subtle:      #0d0d14;
  --surface:        rgba(15, 15, 24, 0.85);
  --surface-solid:  #0f0f18;
  --surface-2:      rgba(22, 22, 34, 0.8);
  --surface-3:      #1c1c2b;
  
  --border:         rgba(255, 255, 255, 0.08);
  --border-light:   rgba(255, 255, 255, 0.04);
  --border-hi:      rgba(239, 68, 68, 0.35);
  
  --text:           #f8fafc;
  --text-dim:       #cbd5e1;
  --muted:          #71717a;
  --muted-light:    #a1a1aa;

  /* Crimson Red Ops */
  --accent:         #ef4444;
  --accent-hover:   #f87171;
  --accent-glow:    rgba(239, 68, 68, 0.35);
  --crimson-deep:   #b91c1c;
  --crimson-hot:    #ff3344;

  --discord:        #5865f2;
  --discord-hover:  #4752c4;
  --discord-glow:   rgba(88, 101, 242, 0.4);

  --radius-lg:      18px;
  --radius:         14px;
  --radius-sm:      8px;
  --radius-xs:      6px;

  --shadow-lg:      0 24px 60px -10px rgba(0, 0, 0, 0.85);
}

[hidden] { display: none !important; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.login-body {
  background-color: #06060a;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(239, 68, 68, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(6, 6, 10, 0.68) 0%, rgba(7, 7, 12, 0.78) 40%, rgba(5, 5, 8, 0.92) 100%),
    url('/bg_tactical.jpg?v=2026');
  background-size: 100% 100%, 100% 100%, cover;
  background-position: center top, center top, center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */

.login-nav {
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.login-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.35) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  font-size: 16px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
  flex-shrink: 0;
}

.login-logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-top: 2px;
}

.nav-right-hud {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-status-beacon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(17, 17, 26, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #a1a1aa;
}

.beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 700 11px 'JetBrains Mono', monospace;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   MAIN HERO
   ========================================================================== */

.login-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 36px 60px;
  width: 100%;
}

/* LEFT: AUTH TERMINAL CARD */
.auth-terminal-card {
  max-width: 540px;
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.auth-terminal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
}

.card-glass-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.terminal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  margin-bottom: 20px;
}

.tactical-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.eyebrow-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ef4444;
  text-transform: uppercase;
}

.terminal-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.gradient-crimson {
  color: #ef4444;
  background: linear-gradient(135deg, #ff4d5e 0%, #ef4444 60%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.terminal-lead {
  color: var(--muted-light);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* DISCORD AUTH CTA BUTTON */
.auth-cta-container {
  margin-bottom: 24px;
}

.btn-discord-crimson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-discord-crimson:hover {
  background: linear-gradient(135deg, #6774ff 0%, #5865f2 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.5), 0 0 16px rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-discord-crimson:active {
  transform: translateY(0);
}

.discord-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
  text-align: left;
  letter-spacing: 0.3px;
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.btn-discord-crimson:hover .btn-arrow {
  transform: translateX(4px);
}

/* OAUTH PRIVACY TRUST NOTE */
.oauth-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  line-height: 1.45;
  color: #94a3b8;
}

.oauth-privacy-note strong {
  color: #e2e8f0;
}

.oauth-note-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ERROR ALERT */
.auth-error-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-xs);
  margin-bottom: 20px;
}

.error-icon {
  font-size: 16px;
}

.error-msg {
  font-size: 12.5px;
  color: #fca5a5;
  font-weight: 600;
}

/* TACTICAL FEATURES GRID */
.tactical-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.feature-icon {
  font-size: 16px;
}

.feature-label {
  font-size: 10.5px;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.3;
}

.auth-disclaimer {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* ==========================================================================
   RIGHT: VISUAL HOLOGRAM STACK
   ========================================================================== */

.hero-hologram-viewport {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hologram-hud-frame {
  width: 360px;
  background: rgba(12, 12, 20, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 68, 68, 0.15);
  backdrop-filter: blur(10px);
}

/* HUD Tech Corner Brackets */
.hud-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #ef4444;
  border-style: solid;
}
.hud-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hud-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hud-corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hud-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
}

.hud-badge-code {
  color: #71717a;
}

.hud-badge-status {
  color: #ef4444;
  letter-spacing: 1px;
}

/* 3D Stack */
.emblem-tactical-stack {
  position: relative;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tactical-card {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 16px;
  transition: all 0.4s ease;
}

.card--back {
  background: rgba(20, 20, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-20px) scale(0.85);
  opacity: 0.5;
}

.card--mid {
  background: rgba(25, 25, 40, 0.8);
  border: 1px solid rgba(239, 68, 68, 0.2);
  transform: translateY(-10px) scale(0.92);
  opacity: 0.75;
}

.card--fore {
  background: linear-gradient(135deg, #181826 0%, #0d0d15 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.card-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 10px #ef4444;
  animation: scanHolo 3s infinite linear;
}

@keyframes scanHolo {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.emblem-crest {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.crest-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(239, 68, 68, 0.5);
  animation: rotateRing 20s infinite linear;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.crest-diamond {
  font-size: 32px;
  color: #ef4444;
  filter: drop-shadow(0 0 12px #ef4444);
}

.card-hud-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.hud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-tag {
  color: #71717a;
}

.hud-val {
  color: #f1f5f9;
  font-weight: 700;
}

.hud-val--crimson {
  color: #ef4444;
}

.hud-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-stat-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.login-footer {
  padding: 24px;
  text-align: center;
  font-size: 11.5px;
  color: #52525b;
}

.login-footer a {
  color: #a1a1aa;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .login-hero {
    flex-direction: column;
    padding: 16px 16px 40px;
    gap: 28px;
    align-items: center;
  }
  .auth-terminal-card {
    width: 100%;
    max-width: 520px;
  }
  .hero-hologram-viewport {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hologram-hud-frame {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 520px) {
  .login-nav {
    padding: 12px 16px;
  }
  .brand-title {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .brand-sub {
    font-size: 9.5px;
  }
  .login-logo-badge {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .auth-terminal-card {
    padding: 22px 16px;
    border-radius: 12px;
  }
  .terminal-eyebrow {
    margin-bottom: 14px;
    padding: 3px 8px;
  }
  .eyebrow-text {
    font-size: 9.5px;
  }
  .terminal-title {
    font-size: 24px;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
  }
  .terminal-lead {
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .btn-discord-crimson {
    padding: 12px 16px;
    font-size: 14px;
  }
  .tactical-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 14px;
  }
  .feature-item {
    padding: 8px 4px;
    gap: 4px;
  }
  .feature-icon {
    font-size: 14px;
  }
  .feature-label {
    font-size: 9.5px;
    line-height: 1.25;
  }
  .hologram-hud-frame {
    padding: 16px;
  }
  .emblem-tactical-stack {
    height: 190px;
  }
  .tactical-card {
    width: 155px;
    height: 155px;
    padding: 12px;
  }
  .emblem-crest {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  .crest-diamond {
    font-size: 24px;
  }
  .card-hud-info {
    padding-top: 6px;
    gap: 2px;
    font-size: 9px;
  }
  .hud-footer-bar {
    margin-top: 14px;
    padding-top: 8px;
  }
  .hud-stat-pill {
    font-size: 9px;
  }
}
