<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/login_fragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?riotx_background">

    <!-- Missing attributes are in the style -->
    <ImageView
        style="@style/LoginLogo"
        tools:ignore="ContentDescription,MissingConstraints" />

    <!-- Missing attributes are in the style -->
    <androidx.core.widget.NestedScrollView
        style="@style/LoginFormScrollView"
        tools:ignore="MissingConstraints">

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

            <ImageView
                android:id="@+id/loginServerUrlFormIcon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:importantForAccessibility="no"
                android:src="@drawable/ic_logo_modular" />

            <TextView
                android:id="@+id/loginServerUrlFormTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="27dp"
                android:textAppearance="@style/TextAppearance.Vector.Login.Title"
                tools:text="@string/login_connect_to_modular" />

            <TextView
                android:id="@+id/loginServerUrlFormText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/layout_vertical_margin"
                android:gravity="start"
                android:textAppearance="@style/TextAppearance.Vector.Login.Text"
                tools:text="@string/login_server_url_form_modular_text" />

            <TextView
                android:id="@+id/loginServerUrlFormLearnMore"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="4dp"
                android:text="@string/login_server_modular_learn_more"
                android:textAppearance="@style/TextAppearance.Vector.Login.Text"
                android:textColor="@color/riotx_accent" />

            <com.google.android.material.textfield.TextInputLayout
                android:id="@+id/loginServerUrlFormHomeServerUrlTil"
                style="@style/VectorTextInputLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="26dp"
                app:errorEnabled="true"
                tools:hint="@string/login_server_url_form_modular_hint">

                <com.google.android.material.textfield.TextInputEditText
                    android:id="@+id/loginServerUrlFormHomeServerUrl"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:imeOptions="actionDone"
                    android:inputType="textUri"
                    android:maxLines="1" />

            </com.google.android.material.textfield.TextInputLayout>

            <TextView
                android:id="@+id/loginServerUrlFormNotice"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="6dp"
                android:gravity="start"
                android:textAppearance="@style/TextAppearance.Vector.Login.Text.Small"
                tools:text="@string/login_server_url_form_modular_notice" />

            <com.google.android.material.button.MaterialButton
                android:id="@+id/loginServerUrlFormSubmit"
                style="@style/Style.Vector.Login.Button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="end"
                android:layout_marginTop="22dp"
                android:text="@string/login_continue" />

        </LinearLayout>

    </androidx.core.widget.NestedScrollView>

</androidx.constraintlayout.widget.ConstraintLayout>

