/* DimeDock Web App - Space Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;
  --color-accent: #a855f7;
  --color-cyan: #22d3ee;
  --color-dark-900: #030308;
  --color-dark-800: #0a0a14;
  --text-white: #ffffff;
  --text-gray-light: #a1a1aa;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', monospace;
  --glow-primary: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.2);
  --glow-accent: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.2);
  --glow-cyan: 0 0 15px rgba(34, 211, 238, 0.5), 0 0 30px rgba(34, 211, 238, 0.2);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--color-dark-900);
  color: var(--text-white);
}

/* ============================================
   STARFIELD CANVAS
   ============================================ */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ============================================
   NEBULA CLOUDS
   ============================================ */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.nebula-1 {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: nebulaDrift1 25s ease-in-out infinite, nebulaFadeIn 3s ease-out 0.5s forwards;
}

.nebula-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: nebulaDrift2 30s ease-in-out infinite, nebulaFadeIn 3s ease-out 1s forwards;
}

.nebula-3 {
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  top: 40%;
  left: 60%;
  animation: nebulaDrift3 20s ease-in-out infinite, nebulaFadeIn 3s ease-out 1.5s forwards;
}

@keyframes nebulaFadeIn {
  to { opacity: 1; }
}

@keyframes nebulaDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes nebulaDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.05); }
  66% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes nebulaDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.15); }
}

/* ============================================
   THE DOCK (Login Panel)
   ============================================ */
.dock-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: dockAppear 1.5s ease-out 0.3s both;
}

@keyframes dockAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.dock {
  position: relative;
  background: linear-gradient(180deg,
    rgba(20, 20, 40, 0.85) 0%,
    rgba(10, 10, 25, 0.9) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 30px rgba(99, 102, 241, 0.15),
    0 0 60px rgba(99, 102, 241, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: dockBreathe 4s ease-in-out infinite;
}

@keyframes dockBreathe {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(99, 102, 241, 0.15),
      0 0 60px rgba(99, 102, 241, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow:
      0 0 40px rgba(99, 102, 241, 0.25),
      0 0 80px rgba(99, 102, 241, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(99, 102, 241, 0.45);
  }
}

/* Metallic edge lines */
.dock::before,
.dock::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.dock::before { top: 0; }
.dock::after { bottom: 0; }

/* Dock indicator lights */
.dock-lights {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 0;
}

.dock-lights-bottom {
  padding: 0 0 10px;
}

.dock-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.6), 0 0 12px rgba(99, 102, 241, 0.3);
  animation: lightPulse 2s ease-in-out infinite;
}

.dock-light:nth-child(2) { animation-delay: 0.2s; }
.dock-light:nth-child(3) { animation-delay: 0.4s; }
.dock-light:nth-child(4) { animation-delay: 0.6s; }
.dock-light:nth-child(5) { animation-delay: 0.8s; }

@keyframes lightPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Dock inner content */
.dock-inner {
  padding: 32px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(99, 102, 241, 0.15); }
}

.dock-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.dock-tagline {
  font-size: 0.95rem;
  color: var(--text-gray-light);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

/* The login button styled as a dock control */
.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 12px;
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dock-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s ease;
}

.dock-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.35) 100%);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.dock-btn:hover::before {
  left: 100%;
}

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

.dock-btn-icon {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Dock base / landing platform */
.dock-base {
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
  position: relative;
}

.dock-base-light {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* Powered by OrbitHub */
.powered-by {
  margin-top: 24px;
  font-size: 0.75rem;
  color: rgba(161, 161, 170, 0.5);
  letter-spacing: 0.05em;
  text-align: center;
}

.orbithub {
  font-family: var(--font-display);
  font-weight: 600;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
}

.footer-text {
  margin-top: 8px;
  font-size: 0.688rem;
  color: var(--text-gray-light);
  opacity: 0.3;
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 520px) {
  .dock-inner {
    padding: 24px 28px;
  }

  .dock-title {
    font-size: 1.5rem;
  }

  .dock-tagline {
    font-size: 0.875rem;
    margin-bottom: 24px;
  }

  .dock-btn {
    font-size: 0.75rem;
    padding: 12px 24px;
  }

  .dock-logo {
    width: 56px;
    height: 56px;
  }

  .planet-1 { display: none; }

  .nebula-1 { width: 300px; height: 200px; }
  .nebula-2 { width: 250px; height: 250px; }
}

@media (max-width: 360px) {
  .dock-inner {
    padding: 20px 20px;
  }

  .dock-title {
    font-size: 1.25rem;
  }
}
