<?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=".LoginActivity">

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="32dp"
        android:background="@drawable/card_background"
        android:elevation="8dp"
        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">

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

        <!-- Username Section -->
        <TextView
            android:id="@+id/usernameTV"
            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/usernameTxt"
            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="24dp"
            android:inputType="text"
            android:maxLines="1"/>

        <!-- Password Section -->
        <TextView
            android:id="@+id/userpasswordTV"
            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/userpasswordTxt"
            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="32dp"
            android:inputType="textPassword"
            android:maxLines="1"/>

        <!-- Login Button -->
        <Button
            android:id="@+id/btnLogin"
            android:layout_width="match_parent"
            android:layout_height="56dp"
            android:text="Log in"
            android:textSize="16sp"
            android:textStyle="bold"
            android:textColor="@color/white"
            android:background="@drawable/button_background"
            android:elevation="4dp"
            android:stateListAnimator="@null"/>

        <!-- Register Text -->
        <TextView
            android:id="@+id/registerTV"
            android:layout_width="281dp"
            android:layout_height="51dp"
            android:clickable="true"
            android:focusable="true"
            android:gravity="center"
            android:text="Don't have an account? Register"
            android:textColor="#03396c"
            android:textSize="14sp" />

    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>