Prevent dots from overflowing input box
This fixes #118 (closed) by using a clip rect and offsetting longer passwords to the left so that the right-most dot aligns with the edge of the input.
Also part of this MR are two (partly supporting) smaller refactorings related to the input rect coordinates.