/* General Body and Container Styles */
/* Removed global body styles from here */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  /* Moved background and min-height from body to auth-container */
  background-color: #f0f2f5; /* Light gray background */
  min-height: 100vh; /* Ensure it takes full viewport height */
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Apply font here */
  color: #333; /* Apply text color here */
}

/* Auth Form Card */
.auth-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px; /* More rounded corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Softer, larger shadow */
  width: 100%;
  max-width: 420px; /* Slightly wider form */
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.auth-form:hover {
  transform: translateY(-5px); /* Subtle lift on hover */
}

.auth-title {
  font-size: 2.2em; /* Larger title */
  color: #2c3e50; /* Darker, professional blue-gray */
  margin-bottom: 35px;
  font-weight: 600;
}

/* Form Elements */
.auth-form label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.95em;
  font-weight: 500;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
  width: calc(100% - 24px); /* Adjust for padding */
  padding: 14px 12px;
  margin-bottom: 25px; /* More space between fields */
  border: 1px solid #e0e0e0; /* Lighter border */
  border-radius: 8px; /* Rounded input fields */
  font-size: 1.05em;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form select:focus {
  border-color: #007bff; /* Highlight on focus */
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Soft focus glow */
  outline: none;
}

/* Submit Button */
.auth-form input[type="submit"] {
  background-color: #007bff; /* Primary blue */
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.auth-form input[type="submit"]:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-2px);
}

.auth-form input[type="submit"]:active {
  transform: translateY(0);
}

/* Error Message */
#email-error {
  color: #e74c3c; /* Red for errors */
  font-size: 0.9em;
  margin-top: -20px;
  margin-bottom: 15px;
  text-align: left;
}

/* Flash Messages */
.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  border: 1px solid;
}

.alert.alert-danger,
.alert.alert-alert {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.alert.alert-success,
.alert.alert-notice {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.alert.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

/* Auth Links (Forgot password, Sign up etc.) */
.auth-links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px; /* Space between links */
}

.auth-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .auth-form {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .auth-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-form select {
    padding: 12px 10px;
    font-size: 1em;
  }

  .auth-form input[type="submit"] {
    padding: 12px 20px;
    font-size: 1em;
  }
}
