/* Body & Animated Background */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background: #111;
  color: #0ff;
}

#animatedBackground {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #0ff, #f0f);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

.shape:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.shape:nth-child(2) { top: 30%; left: 70%; animation-delay: 1s; }
.shape:nth-child(3) { top: 60%; left: 40%; animation-delay: 2s; }
.shape:nth-child(4) { top: 80%; left: 10%; animation-delay: 3s; }

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-50px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

/* Login Container */
#loginContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 30px #0ff, 0 0 50px #f0f;
  z-index: 1;
  transition: transform 0.5s, opacity 0.5s;
}

#loginContainer input {
  display: block;
  width: 250px;
  margin: 15px auto;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #0ff;
  background: #111;
  color: #0ff;
  font-size: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

#loginContainer input:focus {
  transform: scale(1.1);
  box-shadow: 0 0 20px #0ff, 0 0 30px #f0f;
  outline: none;
}

#loginContainer button {
  padding: 12px 25px;
  margin-top: 15px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(45deg, #0ff, #f0f);
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

#loginContainer button:hover {
  transform: scale(1.2) rotateZ(10deg);
  box-shadow: 0 0 30px #0ff, 0 0 40px #f0f, 0 0 50px #0ff;
}

/* Main App */
#appContainer {
  padding: 20px;
  z-index: 1;
  position: relative;
}

#userDisplay {
  position: absolute;
  top: 10px;
  right: 20px;
  font-weight: bold;
  color: #0ff;
  font-size: 18px;
}

nav button {
  margin: 5px;
  padding: 10px 15px;
  border-radius: 12px;
  background: linear-gradient(45deg,#f0f,#0ff);
  border: none;
  cursor: pointer;
  color: #111;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

nav button:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px #0ff, 0 0 30px #f0f;
}

/* Section fade in/out */
.section {
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.5s;
}

.section.show {
  opacity: 1;
}
