/* Basic styling for login/signup forms */
body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

/* Animated Background */
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #4caf50, #81c784);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  z-index: -1; /* Send the background behind the content */
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Container for forms and motivational message */
.container {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

/* Motivational message box */
.motivation-box {
  margin-bottom: 30px;
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.motivation-box h2 {
  color: #4CAF50;
  font-size: 24px;
  margin-bottom: 10px;
}

.motivation-box p {
  color: #333;
  font-size: 16px;
  margin-bottom: 20px;
}

.motivation-box button {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.motivation-box button:hover {
  background: #218838;
}

input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover { background: #218838; }

p { margin-top: 15px; font-size: 14px; }

span { color: #007bff; cursor: pointer; }
span:hover { text-decoration: underline; }

/* Error/Success message styles */
.error {
  color: #e74c3c;
  margin-top: 10px;
}

.success {
  color: #2ecc71;
  margin-top: 10px;
}

/* Responsive Design for Mobile */
@media (max-width: 480px) {
  .container {
    padding: 20px;
    width: 90%;
  }

  h1 {
    font-size: 22px;
  }

  button {
    font-size: 14px;
  }
}
