First-order formalism for bent brane