.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label:has(+ input:required)::after {
  content: ' *';
  color: crimson;
}

input:required {
  border: 2px solid teal;
  padding: 0.25rem 0.5rem;
}