Overpartitions and real quadratic fields