<dl>
  <dt>
    <%= f.label :login, t(".username") %>
  </dt>
  <dd>
    <%= f.text_field :login, "aria-describedby" => "login-field-description" %>
    <%= live_validation_for_field("user_registration_login",
          maximum_length: ArchiveConfig.LOGIN_LENGTH_MAX,
          minimum_length: ArchiveConfig.LOGIN_LENGTH_MIN,
          failureMessage: t(".username_validation", minimum: ArchiveConfig.LOGIN_LENGTH_MIN)) %>
    <p class="footnote" id="login-field-description">
      <%= t(".username_requirements",
             minimum: ArchiveConfig.LOGIN_LENGTH_MIN,
             maximum: ArchiveConfig.LOGIN_LENGTH_MAX) %>
    </p>
  </dd>
  <dt>
    <%= f.label :password, t(".password") %>
  </dt>
  <dd>
    <%= f.password_field :password, "aria-describedby" => "password-field-description" %>
    <%= live_validation_for_field("user_registration_password",
          minimum_length: ArchiveConfig.PASSWORD_LENGTH_MIN,
          maximum_length: ArchiveConfig.PASSWORD_LENGTH_MAX,
          failureMessage: t(".password_validation", minimum: ArchiveConfig.PASSWORD_LENGTH_MIN)) %>
    <p class="footnote" id="password-field-description">
      <%= t(".password_requirements",
            minimum: ArchiveConfig.PASSWORD_LENGTH_MIN,
            maximum: ArchiveConfig.PASSWORD_LENGTH_MAX) %>
    </p>
  </dd>
  <dt><%= f.label :password_confirmation, t(".confirm_password") %></dt>
  <dd>
    <%= f.password_field :password_confirmation %>
    <%= live_validation_for_field("user_registration_password_confirmation",
          minimum_length: ArchiveConfig.PASSWORD_LENGTH_MIN,
          maximum_length: ArchiveConfig.PASSWORD_LENGTH_MAX,
          failureMessage: t(".confirm_password_validation")) %>
  </dd>
  <dt>
    <%= f.label :email, t(".valid_email") %>
  </dt>
  <dd><%= f.text_field :email %></dd>
</dl>
