<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
    <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="24dp">
        <ImageView android:layout_width="72dp" android:layout_height="72dp" android:layout_gravity="center" android:src="@drawable/ic_launcher" android:contentDescription="@string/app_name" />
        <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Connect to your hospital" android:textSize="22sp" android:textStyle="bold" android:gravity="center" android:layout_marginTop="16dp" />
        <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Ask the hospital for a pairing QR code. Your BP monitor, oximeter, thermometer, sugar meter and weighing scale readings will then reach your care team automatically." android:gravity="center" android:layout_marginTop="8dp" />
        <com.google.android.material.button.MaterialButton android:id="@+id/scanQr" android:layout_width="match_parent" android:layout_height="64dp" android:text="Scan pairing QR" android:textSize="18sp" android:layout_marginTop="24dp" />
        <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="or type it" android:gravity="center" android:layout_marginTop="16dp" />
        <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Hospital address (e.g. monitor.hospital.com)" style="@style/Widget.Material3.TextInputLayout.OutlinedBox">
            <com.google.android.material.textfield.TextInputEditText android:id="@+id/server" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textUri" />
        </com.google.android.material.textfield.TextInputLayout>
        <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="Pairing code (e.g. SHIVA-123456)" android:layout_marginTop="8dp" style="@style/Widget.Material3.TextInputLayout.OutlinedBox">
            <com.google.android.material.textfield.TextInputEditText android:id="@+id/code" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputType="textCapCharacters" />
        </com.google.android.material.textfield.TextInputLayout>
        <com.google.android.material.button.MaterialButton android:id="@+id/pair" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Pair" android:layout_marginTop="12dp" style="@style/Widget.Material3.Button.OutlinedButton" />
        <TextView android:id="@+id/status" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:layout_marginTop="12dp" android:textColor="#D93848" />
    </LinearLayout>
</ScrollView>
