<label>
<input type="email" placeholder=" " name="email">
<p>Email</p>
</label>
<span class="field-error">error.required</span>
<label>
<input type="email" placeholder=" " name="email">
<p>Email</p>
</label>
<span class="field-error">error.required</span>
label:has(+ .field-error) {
border: 2px solid red;
}