/* style.css - Dark Neon Theme */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f0f0f;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  align-items: flex-start;
  color: #e0e0e0;
  overflow-x: hidden;
}

.container {
  max-width: 420px;
  margin-top: 60px;
  background-color: rgba(20, 20, 20, 0.95);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  width: 90%;
  backdrop-filter: blur(5px);
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
}

input[type="text"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  background-color: #1f1f1f;
  color: #fff;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
}

input::placeholder {
  color: #999;
}

button {
  width: 100%;
  background-color: #00ffff;
  color: #000;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px #00ffff, 0 0 40px #00ffff;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00cccc;
  box-shadow: 0 0 20px #00ffff;
}

#workouts {
  margin-top: 2rem;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s;
  opacity: 0;
}

#workouts.open {
  max-height: 1000px;
  opacity: 1;
}

.workout-entry {
  background: #1f1f1f;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  transition: transform 0.2s ease;
}

.workout-entry:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

/* 🎨 Canvas background layer */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.35;
}

/* Login Form Styles */
#login-container {
  background: rgba(30, 20, 10, 0.98);
  border-radius: 1.5rem;
  box-shadow: 0 0 25px rgba(255, 152, 0, 0.2);
  padding: 2rem;
  max-width: 420px;
  margin: 60px auto 0 auto;
  width: 90%;
  color: #fff3e0;
  backdrop-filter: blur(5px);
}

#login-container h1 {
  color: #ff9800;
  text-shadow: 0 0 10px #ff9800;
}

#login-form input[type="email"],
#login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 2px solid #ff9800;
  border-radius: 0.5rem;
  background: #1a1208;
  color: #fff3e0;
  font-size: 1rem;
}

#login-form button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 10px #ff9800;
  transition: background 0.2s;
}

#login-form button[type="submit"]:hover {
  background: #ffa726;
}

#login-error {
  color: #ff9800;
  text-align: center;
  margin-top: 1rem;
}

.small-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.link-text {
  color: #ff9800;
  text-decoration: underline;
  cursor: pointer;
}
