/* 🛸 K-OS CYBERPUNK 2077 LOGIN & GATEWAY BASE STYLES */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;0,900;1,800&display=swap');

:root {
  --bg-primary: #02060e;
  --accent-cyan: #00bac4;
  --accent-cyan-bright: #00ffcc;
  --accent-pink: #ff2a6d;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100dvh;
  width: 100vw;
  margin: 0;
  overflow: hidden;
  position: fixed;
  background: var(--bg-primary);
  color: #fff;
  font-family: var(--font-mono);
  cursor: none !important;
}

*::-webkit-scrollbar {
  display: none;
}

/* ⚡ CYBERPUNK 2077 STEEL & NEON BREATH ANIMATIONS */
@keyframes neonCyanBreath {
  0%, 100% {
    color: #00f0ff;
    text-shadow: 0 0 4px rgba(0, 240, 255, 0.5), 0 0 10px rgba(0, 240, 255, 0.2);
  }
  50% {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.9), 0 0 22px rgba(0, 255, 204, 0.7), 0 0 32px rgba(0, 240, 255, 0.4);
  }
}

@keyframes neonPinkBreath {
  0%, 100% {
    color: #ff0055;
    text-shadow: 0 0 4px rgba(255, 0, 85, 0.5), 0 0 10px rgba(255, 0, 85, 0.2);
  }
  50% {
    color: #ff3377;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.9), 0 0 22px rgba(255, 0, 85, 0.7), 0 0 32px rgba(255, 51, 119, 0.4);
  }
}

@keyframes steelPulseGlow {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.9), 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.45);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.95), 0 16px 48px rgba(0, 0, 0, 0.98), 0 0 32px rgba(0, 240, 255, 0.45);
    border-color: rgba(0, 240, 255, 0.8);
  }
}

/* App Loading Screen */
.app-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #051322 0%, #02060e 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.app-loading-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 186, 196, 0) 50%, rgba(0, 0, 0, 0.5) 50%), linear-gradient(90deg, rgba(255, 42, 109, 0.03), rgba(0, 186, 196, 0.03));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 1;
}

.app-loading-screen .vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.k-loading-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: none;
}

.app-loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 🛸 K-OS IGNITE SPHERE ORB (FROM IN-GAME DASHBOARD) */
.ignite-orb-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.ignite-orb-wrapper .ring-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.5);
  animation: spin 20s linear infinite;
}

.ignite-orb-wrapper .ring-2 {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: #00f0ff;
  animation: spin 10s linear infinite reverse;
}

.ignite-core-sphere {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0e2d42 0%, #020b18 60%, #000 100%);
  border: 1px solid rgba(0, 240, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: telemetry-ignite 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 85px rgba(0, 240, 255, 0.95), 0 0 130px rgba(0, 240, 255, 0.6), inset 0 0 45px rgba(0, 240, 255, 0.7);
}

.ignite-k-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 1)) drop-shadow(0 0 50px rgba(0, 240, 255, 0.85));
  animation: logo-ignite 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ignite-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff, 0 0 24px #00f0ff;
  animation: scanBeam 2s linear infinite;
}

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

@keyframes telemetry-ignite {
  0% {
    transform: scale(0.92);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
  }
  35% {
    transform: scale(0.96);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.25);
  }
  100% {
    transform: scale(1.05);
    border-color: rgba(0, 240, 255, 1);
    box-shadow: 0 0 95px rgba(0, 240, 255, 0.95), 0 0 140px rgba(0, 240, 255, 0.65), inset 0 0 50px rgba(0, 240, 255, 0.7);
  }
}

@keyframes logo-ignite {
  0% {
    opacity: 0.6;
    transform: scale(0.92);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
  }
  35% {
    opacity: 0.85;
    transform: scale(0.97);
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.6));
  }
  100% {
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 1)) drop-shadow(0 0 60px rgba(0, 240, 255, 0.9));
  }
}

@keyframes scanBeam {
  0% { top: 0%; }
  100% { top: 100%; }
}

.loading-title {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 5px;
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), -1px -1px 1px rgba(0, 0, 0, 0.9);
}

.loading-sub {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 3px;
  color: #a1a1aa;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(161, 161, 170, 0.3);
}

.loading-tagline {
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #ffd700;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.loading-bar {
  margin-top: 30px;
  width: 240px;
  height: 4px;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.9) 0%, rgba(2, 5, 10, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
}

.loading-bar .progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff, 0 0 24px rgba(0, 240, 255, 0.8);
  animation: loadProgress 1.5s infinite ease-in-out;
}

@keyframes loadProgress {
  0% { left: -50%; width: 30%; }
  50% { width: 70%; }
  100% { left: 100%; width: 30%; }
}

/* Cyberpunk 2077 Scanline Backdrop & Grid */
.k-login-backdrop {
  height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at center, #051322 0%, #02060e 100%);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
}

.k-login-backdrop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 186, 196, 0) 50%, rgba(0, 0, 0, 0.5) 50%), linear-gradient(90deg, rgba(255, 42, 109, 0.03), rgba(0, 186, 196, 0.03));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 1;
}

.k-login-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 204, 0.25), transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* Cyberpunk 2077 Card Container (Steel Plate) */
.k-login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(22, 28, 38, 0.96) 0%, rgba(10, 14, 22, 0.98) 60%, rgba(4, 7, 12, 0.99) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.9);
  padding: 42px 34px 34px 34px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.15);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.k-login-card::before {
  content: "•";
  position: absolute;
  top: 6px;
  left: 18px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
}

.k-login-card::after {
  content: "•";
  position: absolute;
  top: 6px;
  right: 32px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
}

.k-login-top-tag-left {
  position: absolute;
  top: 14px;
  left: 32px;
  font-size: 9px;
  color: #1e2c40;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.9), 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.k-login-top-tag-right {
  position: absolute;
  top: 14px;
  right: 46px;
  font-size: 9px;
  color: #ff0055;
  letter-spacing: 2px;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 0, 85, 0.6);
  animation: neonPinkBreath 3.5s ease-in-out infinite;
}

.k-login-header-block {
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 18px;
}

.k-login-badge {
  font-size: 11px;
  color: var(--accent-pink);
  letter-spacing: 4px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: neonPinkBreath 3.5s ease-in-out infinite;
}

.k-login-badge-dot {
  width: 6px;
  height: 6px;
  background: #ff0055;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff0055, 0 0 20px rgba(255, 0, 85, 0.8);
  display: inline-block;
}

.k-login-glitch-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.9), 1px 1px 1px rgba(255, 255, 255, 0.25), 0 0 10px rgba(0, 240, 255, 0.4);
  animation: neonCyanBreath 3.5s ease-in-out infinite;
}

.k-login-glitch-title span {
  display: inline-block;
  line-height: 1;
}

.k-login-error {
  color: #ff0055;
  font-size: 11px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #ff0055;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, rgba(255, 0, 85, 0.15) 0%, rgba(15, 2, 8, 0.95) 100%);
  letter-spacing: 1.5px;
  line-height: 1.4;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 16px rgba(255, 0, 85, 0.3);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  display: none;
  animation: neonPinkBreath 3.5s ease-in-out infinite;
}

.k-login-input-group {
  position: relative;
  margin-bottom: 28px;
}

.k-login-input-label {
  font-size: 10px;
  color: #1e2c40;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: block;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.9), 1px 1px 1px rgba(255, 255, 255, 0.2);
}

.k-login-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-top: 1px solid rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #00f0ff;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
  clip-path: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.05);
}

.k-login-input:focus {
  border-color: rgba(0, 240, 255, 0.6) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 240, 255, 0.3) !important;
}

.k-login-btn {
  width: 100%;
  padding: 13px 18px;
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 100px;
  clip-path: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 12px rgba(0, 240, 255, 0.2);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  transform: none !important;
}

.k-login-btn:hover {
  background: rgba(0, 240, 255, 0.85) !important;
  border-color: rgba(0, 240, 255, 0.9) !important;
  color: #020408 !important;
  font-weight: 900 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 22px rgba(0, 240, 255, 0.6) !important;
  text-shadow: none !important;
  transform: none !important;
}

.k-login-btn:active {
  transform: none !important;
}

.k-login-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #1e2c40;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.9), 1px 1px 1px rgba(255, 255, 255, 0.2);
}
