/* Global styling */
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", Arial, sans-serif;
  background-color: #f0f2f5; /* Light background */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Ensures footer stays at the bottom */
  box-sizing: border-box;
}

/* Universal container styling for all pages */
.container {
  background-color: #ffffff; /* White background */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  max-width: 800px; /* Consistent width for all pages */
  width: 100%;
  margin: 20px;
  box-sizing: border-box;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

/* Header Styling */
h1,
h2 {
  color: #333333;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 28px;
  text-align: center;
}

/* Form styling */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333333;
  font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
  background-color: #f9f9f9;
  transition: border-color 0.3s;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Input fields focus state */
input:focus {
  outline: none;
  border-color: #5c67f2; /* Highlight color */
  box-shadow: 0 0 5px rgba(92, 103, 242, 0.3); /* Glow effect */
}

/* Submit Button styling */
button[type="submit"] {
  width: 100%;
  background-color: #5c67f2;
  color: #ffffff;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #4953d4;
}

/* Link Styling */
a {
  color: #5c67f2;
  text-decoration: none;
  margin-top: 20px;
  display: block;
}

a:hover {
  text-decoration: underline;
}

/* Footer Styling */
.footer {
  text-align: center;
  margin-top: 20px;
  color: #666666;
  font-size: 14px;
}

/* Add a fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    margin: 20px;
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  button[type="submit"] {
    font-size: 14px;
  }
}

/* Back Button Styling */
.back-btn {
  background-color: #f0f0f0;
  color: #333333;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.back-btn:hover {
  background-color: #cccccc;
}

/* Success and Error Message Styling */
.message {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.6s ease-in-out;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
