/* Custom form validation styles */
.error-message {
  animation: fadeIn 0.3s ease-in-out;
  background-color: rgba(220, 53, 69, 0.05);
  border-left: 3px solid #dc3545;
  padding: 10px 15px;
  margin-top: 15px;
  font-weight: 500;
}

.success-message {
  animation: fadeIn 0.3s ease-in-out;
  background-color: rgba(40, 167, 69, 0.05);
  border-left: 3px solid #28a745;
  padding: 10px 15px;
  margin-top: 15px;
  font-weight: 500;
}

/* Form field validation states */
input.border-danger {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

input.border-danger:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Animation for error messages */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Required field indication */
label:after {
  content: ' *';
  color: #dc3545;
}

// /* For the required fields that already have * in HTML */
// label[for='sign-in']:after,
// label[for='login_name']:after,
// label[for='first_name']:after,
// label[for='last_name']:after,
// label[for='mail']:after,
// label[for='email_code']:after,
// label[for='password']:after,
// label[for='repassword']:after {
//   content: '';
// }
