private JPanel buildLoginPanel() {
		TransparentPanel panel = new TransparentPanel();
		panel.setInsets(4, 0, 4, 0);

		BorderLayout layout = new BorderLayout();
		layout.setHgap(0);
		layout.setVgap(8);
		panel.setLayout(layout);

		GridLayout gl1 = new GridLayout(0, 1);
		gl1.setVgap(2);
		GridLayout gl2 = new GridLayout(0, 1);
		gl2.setVgap(2);
		GridLayout gl3 = new GridLayout(0, 1);
		gl3.setVgap(2);

		TransparentPanel titles = new TransparentPanel(gl1);
		TransparentPanel values = new TransparentPanel(gl2);

		titles.add(new TransparentLabel("Логин:", 4));
		titles.add(new TransparentLabel("Пароль:", 4));
		titles.add(new TransparentLabel("Сервер:"));
		titles.add(new TransparentLabel("", 4));
		

		values.add(userName);
		values.add(password);

		panel.add(titles, "West");
		panel.add(values, "Center");

		
		
		ActionListener ChooseServer = new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				JComboBox box = (JComboBox) e.getSource();
				String server = (String) box.getSelectedItem();

				if (server.equals("Dreamweaver | Lots of Mods")) {
					setCurrentServer(Servers.DREAMWEAVER);
					Config.setDownloadLink(Servers.DREAMWEAVER.getServerUrl());
				} else if (server.equals("Honeymoon | MLP RP")) {
					setCurrentServer(Servers.CASSANDRA);
					Config.setDownloadLink(Servers.CASSANDRA.getServerUrl());

				} else if (server.equals("Honeymoon - HD (low) | MLP RP")) {
					setCurrentServer(Servers.CASSANDRAHDlow);
					Config.setDownloadLink(Servers.CASSANDRAHDlow.getServerUrl());
					
				} else if (server.equals("Honeymoon - HD (High) | MLP RP")) {
					setCurrentServer(Servers.CASSANDRAHDhigh);
					Config.setDownloadLink(Servers.CASSANDRAHDhigh.getServerUrl());
				
				} else if (server.equals("Dizzy | Vanilla Survival")) {
					setCurrentServer(Servers.FEYA);
					Config.setDownloadLink(Servers.FEYA.getServerUrl());
				
				}  else if (server == "Оффлайн режим") {
					setCurrentServer(Servers.OFF);
				}

			}
		};
		//String[] items = { "Honeymoon | MLP RP", "Honeymoon - HD (low) | MLP RP", "Honeymoon - HD (High) | MLP RP", "Dizzy | Vanilla Survival", "Dreamweaver | Lots of Mods"};
		String[] items = { "Honeymoon | MLP RP", "Honeymoon - HD (low) | MLP RP", "Honeymoon - HD (High) | MLP RP", "Dizzy | Vanilla Survival", "Dreamweaver | Lots of Mods"};
		JComboBox servers = new JComboBox(items);
		servers.addActionListener(ChooseServer);
		values.add(servers);
		values.add(rememberBox);
		TransparentPanel loginPanel = new TransparentPanel(new BorderLayout());

		TransparentPanel third = new TransparentPanel(gl3);
		titles.setInsets(0, 0, 0, 4);
		third.setInsets(0, 10, 0, 10);

		third.add(optionsButton);
		third.add(launchButton);
		if (outdated) {
			TransparentLabel accountLink = getUpdateLink();
			third.add(accountLink);
		} else {
			TransparentLabel registerLink = getRegisterLink();
			third.add(registerLink);
		}
		loginPanel.add(third, "Center");
		panel.add(loginPanel, "East");

		errorLabel.setFont(new Font(null, 2, 16));
		errorLabel.setForeground(new Color(16728128));
		errorLabel.setText("");
		panel.add(errorLabel, "North");

		return panel;
	}