.error-message {
  background-color: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #fcc;
}

.field-error {
  color: #c33;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-group.invalid input {
  border-color: #c33;
}

.auth-section {
  display: flex;
  min-height: 100vh;
  background-color: #fafafa;
  align-items: stretch;
}

/* Hero Section - Left */
.auth-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
  background: linear-gradient(
      rgba(180, 164, 165, 0.8),
      rgba(180, 164, 165, 0.8)
    ),
    url("/images/blueberryHeader.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  width: 50vw;
}

.auth-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.auth-hero p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  max-width: 500px;
}

/* Form Section - Right */
.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 50px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 50vw;
}

/* Form Styles */
.auth-form .form-group {
  margin-bottom: 25px;
  position: relative;
}

.auth-form .form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.auth-form .form-group input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: #fafafa;
  font-family: inherit;
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: #c4a5a5;
  background: white;
  box-shadow: 0 0 0 4px rgba(196, 165, 165, 0.1);
  transform: translateY(-2px);
}

.auth-btn {
  width: 100%;
  background: linear-gradient(135deg, #8b7d7d, #c4a5a5);
  color: white;
  border: none;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 125, 125, 0.4);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
}

.auth-footer a {
  color: #c4a5a5;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  color: #8b7d7d;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .auth-section {
    flex-direction: column;
    padding: 40px 0;
  }

  .auth-hero {
    padding: 40px 20px;
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .auth-container {
    margin-top: 30px;
    padding: 40px 30px;
    width: 90%;
    margin: 0 auto; /* ✅ center the form horizontally */
  }
}

@media (max-width: 768px) {
  .auth-hero h1 {
    font-size: 2.2rem;
  }

  .auth-hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  .auth-container {
    padding: 30px 20px;
  }

  .auth-form .form-group input {
    padding: 15px 18px;
    font-size: 1rem;
  }

  .auth-btn {
    padding: 18px;
    font-size: 1.1rem;
  }
}
