[noun] + さえ + [verb (ば-form)] [verb ます-stem] + さえ + すれば [verb て-form] + さえ + いれば [i-adj 〜い → 〜く] + さえ + あれば [na-adj] + で + さえ + あれば
To put the weight on the action rather than on a noun, さえ goes on the ます-stem and すれば follows. A する-verb noun takes さえすれば directly.
くすり薬さえのめば飲めば and くすり薬をのみ飲みさえすれば say the same thing; the first stresses the medicine, the second the taking.An い-adjective can take its ば-form straight after the noun's さえ, or go to the く-form with さえあれば. A な-adjective or a noun as predicate takes でさえあれば.
These go beyond the plain condition.
A て-form with さえいれば means "as long as you keep doing".
With のに at the end, the sentence regrets that the condition isn't met.