@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --neon-cyan: #00f0ff;
  --neon-blue: #0088ff;
  --neon-green: #00ff88;
  --neon-red: #ff3366;
  --neon-gold: #ffd200;
  --bg-dark: #070a13;
  --panel-bg: rgba(10, 16, 30, 0.82);
  --panel-border: rgba(0, 240, 255, 0.35);
  --input-bg: rgba(6, 12, 26, 0.75);
  --font-display: 'Orbitron', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

* {
  box-sizing: border-box;
}

body.futuristic-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(0, 136, 255, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
    url('/do_img/background3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: var(--font-tech);
  color: #e2f1ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

/* Background Canvas */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Cyber Grid Overlay */
.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 2;
}

/* Scanline Effect */
.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.25) 51%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.6;
}

/* Main Container Wrapper */
.hud-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 25px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Branding Bar */
.hud-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 12px 24px;
  background: rgba(8, 14, 28, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--panel-border);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.1), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

.hud-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hud-logo-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--neon-cyan);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  transform: rotate(45deg);
}

.hud-logo-icon svg {
  transform: rotate(-45deg);
  width: 20px;
  height: 20px;
  fill: var(--neon-cyan);
}

.hud-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.hud-logo-sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.hud-status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulse-glow 1.8s infinite;
}

.pulse-dot.offline {
  background-color: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red);
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.6; }
}

/* Center Content Layout */
.hud-content-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 900px) {
  .hud-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Showcase Panel */
.hud-showcase {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 136, 255, 0.6);
}

.showcase-title span {
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}

.showcase-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #a5c3e8;
  max-width: 480px;
}

.showcase-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

.feature-box {
  background: rgba(10, 18, 35, 0.6);
  border-left: 3px solid var(--neon-cyan);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  border-right: 1px solid rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  padding: 12px 14px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-left-color: var(--neon-gold);
  transform: translateX(4px);
  background: rgba(14, 25, 48, 0.8);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 1px;
}

.feature-sub {
  font-size: 12px;
  color: #799fc4;
  margin-top: 4px;
}

/* Right Hologram Auth Terminal */
.hud-auth-terminal {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Terminal Corners */
.hud-auth-terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  border-top: 3px solid var(--neon-cyan);
  border-left: 3px solid var(--neon-cyan);
  pointer-events: none;
  z-index: 5;
}

.hud-auth-terminal::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25px;
  height: 25px;
  border-bottom: 3px solid var(--neon-cyan);
  border-right: 3px solid var(--neon-cyan);
  pointer-events: none;
  z-index: 5;
}

/* Terminal Tabs Header */
.terminal-tabs {
  display: flex;
  background: rgba(5, 10, 22, 0.9);
  border-bottom: 1px solid var(--panel-border);
}

.terminal-tab-btn {
  flex: 1;
  padding: 16px 12px;
  background: transparent;
  border: none;
  color: #6d8ba6;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.terminal-tab-btn:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.05);
}

.terminal-tab-btn.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.terminal-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Terminal Body */
.terminal-body {
  padding: 30px 28px;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  animation: hudFadeIn 0.35s ease-out;
}

@keyframes hudFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.panel-header-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Form Styles */
.cyber-input-group {
  margin-bottom: 18px;
  position: relative;
}

.cyber-input-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8da4be;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.cyber-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cyber-input-icon {
  position: absolute;
  left: 14px;
  color: #557599;
  font-size: 16px;
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 2;
}

/* Exact element compatibility */
.hud-auth-terminal input[type="text"],
.hud-auth-terminal input[type="password"],
.hud-auth-terminal input[type="email"] {
  width: 100% !important;
  height: 44px !important;
  background: var(--input-bg) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  border-radius: 2px !important;
  padding: 0 14px 0 42px !important;
  color: #ffffff !important;
  font-family: var(--font-tech) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
  float: none !important;
}

.hud-auth-terminal input[type="text"]:focus,
.hud-auth-terminal input[type="password"]:focus,
.hud-auth-terminal input[type="email"]:focus {
  outline: none !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4), inset 0 0 10px rgba(0, 240, 255, 0.1) !important;
  background: rgba(9, 18, 38, 0.9) !important;
}

.hud-auth-terminal input:focus ~ .cyber-input-icon {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Error States */
.hud-auth-terminal input.bgcdw_errors {
  border-color: var(--neon-red) !important;
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.5), inset 0 0 8px rgba(255, 51, 102, 0.2) !important;
  background: rgba(30, 8, 16, 0.8) !important;
}

div.bgcdw_errors {
  color: var(--neon-red);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 5px;
}

div.bgcdw_errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

div.bgcdw_errors ul li {
  background: rgba(255, 51, 102, 0.15);
  border-left: 2px solid var(--neon-red);
  padding: 4px 8px;
  margin-top: 4px;
}

#resultAll {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid var(--neon-red) !important;
  color: #ff99b3;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 2px;
  text-align: center;
}

/* Terms Checkbox */
.terms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 13px;
  color: #8da4be;
}

.terms-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px !important;
  height: 18px !important;
  background: var(--input-bg);
  border: 1px solid var(--neon-cyan);
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  place-content: center;
  margin: 0 !important;
}

.terms-row input[type="checkbox"]::before {
  content: "✔";
  color: var(--neon-cyan);
  font-size: 12px;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
}

.terms-row input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.terms-row a {
  color: var(--neon-cyan) !important;
  text-decoration: underline !important;
}

/* Action Buttons */
.cyber-submit-btn {
  width: 100% !important;
  height: 48px !important;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.8), rgba(0, 240, 255, 0.8)) !important;
  border: 1px solid var(--neon-cyan) !important;
  color: #030a16 !important;
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4) !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px) !important;
  margin: 0 !important;
}

.cyber-submit-btn:hover {
  background: linear-gradient(135deg, #00f0ff, #0088ff) !important;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.8) !important;
  transform: translateY(-2px) !important;
  color: #000000 !important;
}

.cyber-submit-btn:active {
  transform: translateY(0) !important;
}

/* Footer Telemetry Bar */
.hud-footer {
  width: 100%;
  padding: 16px 24px;
  background: rgba(5, 10, 22, 0.8);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #799fc4;
  z-index: 10;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  color: #a5c3e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

.discord-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.5);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 3px;
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.discord-btn:hover {
  background: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
  color: #fff;
}

@media (max-width: 768px) {
  .hud-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .hud-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-left, .footer-right {
    flex-direction: column;
    gap: 8px;
  }
}
