By Paul Taylor and Renee Maltezou
BRUSSELS (Reuters) - Euro zone leaders made Greece surrender much of its sovereignty to outside supervision on Monday in return for agreeing to talks on an 86 billion euros bailout to keep the near-bankrupt country in the single currency.
The terms imposed by international lenders led by Germany in all-night talks at an emergency summit obliged leftist Prime Minister Alexis Tsipras to abandon promises of ending austerity and could fracture his government and cause an outcry in Greece.
"Clearly the Europe of austerity has won," Greece's Reform Minister George Katrougalos said.
"Either we are going to accept these draconian measures or it is the sudden death of our economy through the continuation of the closure of the banks. So it is an agreement that is practically forced upon us," he told BBC radio.
Greece however aims to reopen its banks on Thursday, bankers said after meeting the finance minister. Facing a wave of withdrawals, the banks closed two weeks ago.
More From This Section
If the summit had failed, Greece would have been staring into an economic abyss with its shuttered banks on the brink of collapse and the prospect of having to print a parallel currency and exit the European monetary union.
"The agreement was laborious, but it has been concluded. There is no Grexit," European Commission President Jean-Claude Juncker told a news conference after 17 hours of bargaining.
He dismissed suggestions that Tsipras had been humiliated even though the summit statement insisted repeatedly that Greece must now subject much of its public policy to prior agreement by bailout monitors.
"In this compromise, there are no winners and no losers," Juncker said. "I don't think the Greek people have been humiliated, nor that the other Europeans have lost face. It is a typical European arrangement."
Tsipras himself, elected five months ago to end five years of suffocating austerity, said he had "fought a tough battle" and "averted the plan for financial strangulation".
Greece won conditional agreement to receive a possible 86 billion euros ($95 billion) over three years, along with an assurance that euro zone finance ministers would start within hours discussing ways to bridge a funding gap until a bailout - subject to parliamentary approvals - is finally ready.
That will only happen if he can meet a tight timetable for enacting unpopular reforms of value added tax, pensions, budget cuts if Greece misses fiscal targets, new bankruptcy rules and an EU banking law that could be used to make big depositors take losses.
German Chancellor Angela Merkel said she could recommend "with full confidence" that the Bundestag authorise the opening of loan negotiations with Athens once the Greek parliament has approved the entire programme and passed the first laws.
The secretary-general of Merkel's conservatives said the Bundestag was likely to vote on Greece on Friday.
Merkel's allies rushed to defend the deal, with her chief of staff, Peter Altmaier, tweeting that Europe had won and Germany "was part of the solution -- from the beginning until the end!"
But in Greece, relief that a deal had been struck was mixed with anger at Germany. "Listen, it is some sort of victory but it is a pyrrhic victory because the measures are very strict," Marianna, 73, told Reuters.
Malta's Prime Minister Joseph Muscat said Greece came out of the summit "humiliated" - mostly as a result of its refusal to take an offer made to it two weeks ago.
VERSAILLES IN BRUSSELS?
Asked whether the tough conditions imposed on a desperate Greece were not similar to the 1919 Versailles treaty that forced crushing reparations on a defeated Germany after World War One, Merkel said: "I won't take part in historical comparisons, especially when I didn't make them myself."
The deterioration of the Greek economy since Tsipras won office in January, and particularly in the last two weeks, had led to a much higher financing need, she said.
One senior EU official calculated the cost to the Greek state of the last two weeks of political and economic turmoil at 25 to 30 billion euros. A euro zone diplomat said the full damage might be closer to 50 billion euros.
Tsipras accepted a compromise on German-led demands for the sequestration of Greek state assets worth 50 billion euros - including recapitalised banks - in a trust fund beyond government reach, to be sold off primarily to pay down debt. In a gesture to Greece, some 12.5 billion euros of the proceeds would go to investment in Greece, Merkel said.
The Greek leader had to drop his opposition to a full role for the International Monetary Fund in the next bailout, which Merkel had insisted on to win parliamentary backing in Berlin.
In a sign of how hard it may be for Tsipras to convince his own Syriza party to accept the deal, Labour Minister Panos Skourletis said the terms were unviable and would lead to new elections this year.
Six sweeping measures including spending cuts, tax hikes and pension reforms must be enacted by Wednesday night and the entire package endorsed by parliament before talks can start, the leaders decided.
In almost the only concession after imposing its tough terms on Tsipras, Germany dropped a proposal to make Greece take a "time-out" from the euro zone that many said resembled a forced ejection if it failed to meet the conditions.
Tsipras was subjected to a 17-hour browbeating by leaders furious that he had spurned their previous bailout offer on more favourable terms in June and held a referendum last week to reject it. Only France and Italy worked to try to soften the terms being imposed on Greece.
HARD BARGAIN
Some diplomats questioned whether it was feasible to rush the package through the Greek parliament in three days. Tsipras is set to sack ministers who did not support him and make dissident Syriza lawmakers resign their seats, people close to the government said.
Even if this week's rescue succeeds, many EU diplomats question whether an unstable Greece will stay the course on a three-year programme.
Merkel, whose country is the biggest contributor to euro zone bailouts, said from the start that she would drive a hard bargain against a backdrop of mounting opposition at home to more aid for Greece.
The final sticking point was Germany's insistence on an independent external trust fund to control state assets for privatisation. Berlin initially wanted to use a structure in Luxembourg managed by its own national development bank, KfW, but eventually relented.
One diplomat said that was tantamount to turning Greece into a "German protectorate". But Merkel declared the matter a "red line" for Germany.
Euro zone finance ministers were tasked with finding sources of immediate bridge funding for Greece if it passed the laws, to prevent it defaulting on a key payment to the ECB next Monday.
Finance ministers said Greece needed 7 billion euros of funding by July 20, when it must make a crucial bond redemption to the ECB, and a total of 12 billion euros by mid-August when another ECB payment falls due.
The ECB maintained emergency funding for Greek banks to keep them just afloat this week, a banking source said.
($1 = 0.9025 euros)
(Reporting by Alastair Macdonald, Andreas Rinke, Tom Koerkemeier, Philip Blenkinsop, Julia Fioretti, Alexander Saeedy, Robert-Jan Bartunek and Julien Ponthis in Brussels, George Georgiopoulos and Lefteris Karagiannopoulos in Athens; Writing by Paul Taylor; editing by Anna Willard and Giles Elgood)