<?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/bg_base">

    <!-- Header Background -->
    <View
        android:id="@+id/headerBg"
        android:layout_width="match_parent"
        android:layout_height="160dp"
        android:background="@color/bg_surface"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent" />

    <!-- Header Title -->
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:fontFamily="@font/font_bebas_neue"
        android:text="CRIAR CONTA"
        android:textColor="@color/text_1"
        android:textSize="28sp"
        android:letterSpacing="0.04"
        android:layout_marginTop="55dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

    <!-- Sign Up Form Container -->
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:fillViewport="true"
        android:layout_marginTop="-20dp"
        app:layout_constraintTop_toBottomOf="@+id/headerBg"
        app:layout_constraintBottom_toBottomOf="parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:paddingHorizontal="24dp"
            android:paddingTop="20dp"
            android:paddingBottom="20dp">

            <!-- User Name Label -->
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:text="Nome de Utilizador"
                android:textColor="@color/text_1"
                android:textStyle="bold"
                android:textSize="13sp"
                android:layout_marginBottom="8dp"
                android:layout_marginStart="4dp"/>

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/editUserName"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/bg_input_field"
                android:paddingHorizontal="16dp"
                android:inputType="textPersonName"
                android:hint="Tony"
                android:textColor="@color/text_1"
                android:textColorHint="@color/text_3"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:textSize="13sp"
                android:layout_marginBottom="20dp" />

            <!-- Email Label -->
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:text="Email"
                android:textColor="@color/text_1"
                android:textStyle="bold"
                android:textSize="13sp"
                android:layout_marginBottom="8dp"
                android:layout_marginStart="4dp"/>

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/editEmail"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/bg_input_field"
                android:paddingHorizontal="16dp"
                android:inputType="textEmailAddress"
                android:hint="email@exemplo.com"
                android:textColor="@color/text_1"
                android:textColorHint="@color/text_3"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:textSize="13sp"
                android:layout_marginBottom="20dp" />

            <!-- Password Label -->
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:text="Password"
                android:textColor="@color/text_1"
                android:textStyle="bold"
                android:textSize="13sp"
                android:layout_marginBottom="8dp"
                android:layout_marginStart="4dp"/>

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/editPassword2"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/bg_input_field"
                android:paddingHorizontal="16dp"
                android:inputType="textPassword"
                android:hint="********"
                android:textColor="@color/text_1"
                android:textColorHint="@color/text_3"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:textSize="13sp"
                android:layout_marginBottom="20dp" />

            <!-- Confirm Password Label -->
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:text="Confirmar Password"
                android:textColor="@color/text_1"
                android:textStyle="bold"
                android:textSize="13sp"
                android:layout_marginBottom="8dp"
                android:layout_marginStart="4dp"/>

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/editConfirmPassword"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/bg_input_field"
                android:paddingHorizontal="16dp"
                android:inputType="textPassword"
                android:hint="********"
                android:textColor="@color/text_1"
                android:textColorHint="@color/text_3"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:textSize="13sp"
                android:layout_marginBottom="28dp" />

            <!-- Sign Up Button -->
            <com.google.android.material.button.MaterialButton
                android:id="@+id/btnCreateAccount"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:text="Registar"
                android:textAllCaps="false"
                android:textSize="14sp"
                android:textStyle="bold"
                android:fontFamily="@font/font_ibm_plex_sans"
                android:textColor="@color/bg_base"
                app:backgroundTint="@color/brand"
                app:cornerRadius="8dp"
                android:layout_marginBottom="20dp" />

            <!-- Login Link -->
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:gravity="center">

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:fontFamily="@font/font_ibm_plex_sans"
                    android:text="Já tem uma conta? "
                    android:textColor="@color/text_2"
                    android:textSize="13sp" />

                <TextView
                    android:id="@+id/txtGoLogin"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:fontFamily="@font/font_ibm_plex_sans"
                    android:text="Sign In"
                    android:textColor="@color/brand"
                    android:textStyle="bold"
                    android:textSize="13sp"
                    android:clickable="true"
                    android:focusable="true"/>
            </LinearLayout>

        </LinearLayout>
    </ScrollView>

</androidx.constraintlayout.widget.ConstraintLayout>
