<?xml version="1.0" encoding="utf-8"?>
<!--
   This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true" >

    <LinearLayout
        android:id="@+id/sign_in_view"
        style="@style/FxAccountMiddle" >

        <LinearLayout style="@style/FxAccountSpacer" />

        <TextView
            style="@style/FxAccountHeaderItem"
            android:text="@string/fxaccount_sign_in_sub_header" />

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

        <TextView
            android:id="@+id/remote_error"
            style="@style/FxAccountErrorItem" />

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

        <RelativeLayout style="@style/FxAccountButtonLayout"
            android:layout_marginTop="10dp" >

            <ProgressBar
                android:id="@+id/progress"
                style="@style/FxAccountProgress" />

            <Button
                android:id="@+id/button"
                style="@style/FxAccountProgressButton"
                android:text="@string/fxaccount_sign_in_button_label" />
        </RelativeLayout>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="10dp"
            android:orientation="horizontal" >

            <TextView
                android:id="@+id/forgot_password_link"
                style="@style/FxAccountLinkifiedItem"
                android:layout_gravity="left"
                android:layout_weight="1"
                android:gravity="left"
                android:text="@string/fxaccount_sign_in_forgot_password" />

            <TextView
                android:id="@+id/create_account_link"
                style="@style/FxAccountLinkItem"
                android:layout_gravity="right"
                android:layout_weight="1"
                android:gravity="right"
                android:text="@string/fxaccount_sign_in_create_account_instead" />
        </LinearLayout>

        <TextView
            android:id="@+id/policy"
            style="@style/FxAccountPolicyItem"
            android:text="@string/fxaccount_create_account_policy_text" />

        <LinearLayout style="@style/FxAccountSpacer" />

        <ImageView
            style="@style/FxAccountIcon"
            android:contentDescription="@string/fxaccount_empty_contentDescription" />
    </LinearLayout>

</ScrollView>
