mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 05:17:24 +01:00
Sign in, register, forgot password and reset password are four views of essentially one form, and each had written out its own label/input/error block — seven copies of the same six lines — plus its own submit button. The block is small, which is exactly why it drifts: it is the kind of thing you copy without reading. The `htmlFor`/`id` pairing, the error paragraph placed after the input rather than before it, and the button that disables itself while submitting are accessibility and double-submit guarantees. They should hold on all four pages because they are one component, not because four pages happened to remember. These are also the only pages a patient meets before they have an account, so "it behaves slightly differently on the reset page" is a trust problem rather than a cosmetic one. app/[locale]/(auth)/AuthFields.tsx now holds AuthField and AuthSubmit; each page keeps its own translations, layout and links. Markup, classes and copy are unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8