<?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/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/bgColor"
    tools:context=".RegisterActivity">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true">

        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:padding="32dp"
                android:background="@drawable/card_background"
                android:elevation="8dp"
                android:layout_marginTop="24dp"
                android:layout_marginBottom="24dp"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintWidth_percent="0.85"
                app:layout_constraintVertical_bias="0.5">

                <!-- Register Header -->
                <TextView
                    android:id="@+id/registerHeader"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="Register"
                    android:textSize="32sp"
                    android:textStyle="bold"
                    android:textColor="#011f4b"
                    android:gravity="center"
                    android:layout_marginBottom="32dp"/>

                <!-- Username Section -->
                <TextView
                    android:id="@+id/usernameTextView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="Username"
                    android:textSize="16sp"
                    android:textStyle="bold"
                    android:textColor="#03396c"
                    android:layout_marginBottom="8dp"/>

                <EditText
                    android:id="@+id/usernameEditText"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"
                    android:hint="Username"
                    android:textColorHint="#6497b1"
                    android:textColor="#011f4b"
                    android:background="@drawable/edit_text_background"
                    android:padding="16dp"
                    android:layout_marginBottom="20dp"
                    android:inputType="textPersonName"
                    android:maxLength="150"
                    android:maxLines="1"/>

                <!-- Email Section -->
                <TextView
                    android:id="@+id/emailTextView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="Email Address"
                    android:textSize="16sp"
                    android:textStyle="bold"
                    android:textColor="#03396c"
                    android:layout_marginBottom="8dp"/>

                <EditText
                    android:id="@+id/emailEditText"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"
                    android:hint="Email"
                    android:textColorHint="#6497b1"
                    android:textColor="#011f4b"
                    android:background="@drawable/edit_text_background"
                    android:padding="16dp"
                    android:layout_marginBottom="20dp"
                    android:inputType="textEmailAddress"
                    android:maxLength="254"
                    android:maxLines="1"/>

                <!-- Ime Section -->
                <TextView
                    android:id="@+id/imeTextView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="First Name"
                    android:textSize="16sp"
                    android:textStyle="bold"
                    android:textColor="#03396c"
                    android:layout_marginBottom="8dp"/>

                <EditText
                    android:id="@+id/imeEditText"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"
                    android:hint="First Name"
                    android:textColorHint="#6497b1"
                    android:textColor="#011f4b"
                    android:background="@drawable/edit_text_background"
                    android:padding="16dp"
                    android:layout_marginBottom="20dp"
                    android:maxLength="30"
                    android:maxLines="1"/>

                <!-- Prezime Section -->
                <TextView
                    android:id="@+id/prezimeTextView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="Last Name"
                    android:textSize="16sp"
                    android:textStyle="bold"
                    android:textColor="#03396c"
                    android:layout_marginBottom="8dp"/>

                <EditText
                    android:id="@+id/prezimeEditText"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"
                    android:hint="Last Name"
                    android:textColorHint="#6497b1"
                    android:textColor="#011f4b"
                    android:background="@drawable/edit_text_background"
                    android:padding="16dp"
                    android:layout_marginBottom="20dp"
                    android:maxLength="30"
                    android:maxLines="1"/>

                <!-- Index Section -->
                <TextView
                    android:id="@+id/indexTextView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="School ID"
                    android:textSize="16sp"
                    android:textStyle="bold"
                    android:textColor="#03396c"
                    android:layout_marginBottom="8dp"/>

                <EditText
                    android:id="@+id/indexEditText"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"
                    android:hint="School Index"
                    android:textColorHint="#6497b1"
                    android:textColor="#011f4b"
                    android:background="@drawable/edit_text_background"
                    android:padding="16dp"
                    android:layout_marginBottom="20dp"
                    android:inputType="text"
                    android:maxLength="8"
                    android:maxLines="1"/>

                <!-- Password Section -->
                <TextView
                    android:id="@+id/passwordTextView"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="Password"
                    android:textSize="16sp"
                    android:textStyle="bold"
                    android:textColor="#03396c"
                    android:layout_marginBottom="8dp"/>

                <EditText
                    android:id="@+id/passwordEditText"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"
                    android:hint="Password"
                    android:textColorHint="#6497b1"
                    android:textColor="#011f4b"
                    android:background="@drawable/edit_text_background"
                    android:padding="16dp"
                    android:layout_marginBottom="28dp"
                    android:inputType="textPassword"
                    android:maxLength="128"
                    android:maxLines="1"/>

                <!-- Register Button -->
                <Button
                    android:id="@+id/btnRegister"
                    android:layout_width="match_parent"
                    android:layout_height="56dp"
                    android:text="Register"
                    android:textSize="16sp"
                    android:textStyle="bold"
                    android:textColor="#FFFFFF"
                    android:background="@drawable/button_background"
                    android:elevation="4dp"
                    android:stateListAnimator="@null"
                    android:layout_marginBottom="24dp"/>

                <!-- Login Text -->
                <TextView
                    android:id="@+id/loginTV"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="Already have an account? Login"
                    android:textSize="14sp"
                    android:textColor="#03396c"
                    android:gravity="center"
                    android:clickable="true"
                    android:focusable="true"/>

            </LinearLayout>

        </androidx.constraintlayout.widget.ConstraintLayout>

    </ScrollView>

</androidx.constraintlayout.widget.ConstraintLayout>