<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <include layout="@layout/progress_screen" />

    <!-- Login form -->

    <ScrollView
        android:id="@+id/create_account_form"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <RelativeLayout
            style="@style/LoginFormContainer"
            android:orientation="vertical" >

            <EditText
                android:id="@+id/nickname"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/nickName"
                android:maxLines="1"
                android:singleLine="true"
                android:inputType="textEmailAddress" />

            <EditText
                android:id="@+id/email"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/nickname"
                android:hint="@string/email"
                android:inputType="textEmailAddress"
                android:maxLines="1"
                android:singleLine="true" />

            <EditText
                android:id="@+id/password"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/email"
                android:hint="@string/prompt_password"
                android:imeActionId="@+id/login"
                android:imeActionLabel="@string/action_sign_in_short"
                android:imeOptions="actionUnspecified"
                android:inputType="textPassword"
                android:maxLines="1"
                android:singleLine="true" />

            <TextView
                android:id="@+id/serverTextView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/password"
                android:text="@string/serverTitle_preferences"
                android:textColor="@color/sgilight_gray_32"
                android:textSize="16sp"
                android:layout_marginTop="8dip"
                android:paddingTop="1dip"
                android:layout_marginLeft="5dip" />

            <Spinner
                android:id="@+id/serverSpinner"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_toRightOf="@+id/serverTextView"
                android:layout_toEndOf="@id/serverTextView"
                android:layout_below="@id/password"
                android:layout_alignTop="@+id/serverTextView" />

            <EditText
                android:id="@+id/serverEditText"
                android:hint="@string/prompt_server"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_below="@id/serverSpinner"
                android:layout_alignLeft="@+id/serverSpinner"
                android:layout_alignStart="@+id/serverSpinner"
                android:visibility="gone"
                android:inputType="textUri" />

            <Button
                android:id="@+id/create_account_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_alignParentEnd="true"
                android:layout_below="@id/serverEditText"
                android:paddingLeft="32dip"
                android:paddingRight="32dip"
                android:text="@string/createAccountModuleLabel"
                android:textColor="@color/white"
                android:background="@color/button_background_blue"
                android:layout_marginTop="8dip" />

        </RelativeLayout>
    </ScrollView>

</LinearLayout>