/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* simple_form validation error states: red border on the offending field and
   the error message below it (both are rendered by simple_form, unstyled by
   default, so we style them here). */
.form-field.field_with_errors input,
.form-field.field_with_errors select,
.form-field.field_with_errors textarea {
  border-color: #dc2626;
}

.form-field.field_with_errors input:focus,
.form-field.field_with_errors select:focus,
.form-field.field_with_errors textarea:focus {
  box-shadow: 0 0 0 1px #dc2626;
}

.form-field .error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #dc2626;
}

html.dark .form-field .error {
  color: #f87171;
}

.form-field .hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #6b7280;
}

html.dark .form-field .hint {
  color: #9ca3af;
}
