/* Center the login card on the screen */
.register-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;
  margin: 60px auto 20px auto;
  font-family: system-ui, -apple-system, sans-serif;
}

.register-form h1 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

/* Create clean vertical spacing for Django form tags */
.form-with-validation {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Style the text and password fields generated by {{ form }} */
.form-with-validation input[type="text"],
.form-with-validation input[type="password"],
.form-with-validation input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 15px;
  color: #333333;
  background-color: #fafafa;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

/* Highlight inputs when active or focused */
.form-with-validation input:focus {
  border-color: #4a90e2;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

/* Style Django's auto-generated field labels */
.form-with-validation label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 6px;
}

/* Style Django form error lists if login fails */
.form-with-validation .errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
}

/* Submit button styling */
.form-submit {
  background-color: #4a90e2;
  color: #ffffff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 10px;
}

.form-submit:hover {
  background-color: #357abd;
}

.form-submit:active {
  transform: scale(0.98);
}

/* Sign Up navigation link below the card */
a[href*="register"] {
  display: block;
  text-align: center;
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

a[href*="register"]:hover {
  color: #23527c;
  text-decoration: underline;
}
