Brexit would be an added complication and an independent Scotland born through a messy secession battle with London would have to apply for EU membership after the United Kingdom left, according to diplomats and EU officials.