Discrepancy bounds for the distribution of the Riemann zeta-function and applications