<?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"
    android:id="@+id/main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/azulClaro">

    <!-- Gradiente topo -->
    <View
        android:id="@+id/topGradient"
        android:layout_width="0dp"
        android:layout_height="260dp"
        android:background="@drawable/bg_gradient_top"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

    <!-- Ícone -->
    <ImageView
        android:id="@+id/logoIcon"
        android:layout_width="85dp"
        android:layout_height="85dp"
        android:src="@drawable/logo"
        android:layout_marginTop="35dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

    <!-- Título -->
    <TextView
        android:id="@+id/titleFindU"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="FindU"
        android:textSize="26sp"
        android:textColor="@android:color/white"
        android:textStyle="bold"
        app:layout_constraintTop_toBottomOf="@id/logoIcon"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

    <!-- Subtítulo -->
    <TextView
        android:id="@+id/subtitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Segurança em Tempo Real"
        android:textSize="14sp"
        android:textColor="@android:color/white"
        app:layout_constraintTop_toBottomOf="@id/titleFindU"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent" />

    <!-- Card branco -->
    <androidx.cardview.widget.CardView
        android:id="@+id/cardRecover"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="20dp"
        android:layout_marginEnd="20dp"
        android:layout_marginTop="18dp"
        app:cardCornerRadius="22dp"
        app:cardElevation="8dp"
        app:layout_constraintTop_toBottomOf="@id/subtitle"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintEnd_toEndOf="parent">

        <LinearLayout
            android:orientation="vertical"
            android:padding="22dp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <!-- Título -->
            <TextView
                android:text="Recuperar Palavra-passe"
                android:textSize="20sp"
                android:textColor="#1E1E1E"
                android:textStyle="bold" />

            <TextView
                android:text="Introduza o seu email e enviaremos instruções para redefinir a sua palavra-passe."
                android:layout_marginTop="6dp"
                android:textSize="13sp"
                android:textColor="#666" />

            <!-- Email -->
            <com.google.android.material.textfield.TextInputLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="20dp">

                <com.google.android.material.textfield.TextInputEditText
                    android:id="@+id/inputEmailRecover"
                    android:hint="Email"
                    android:inputType="textEmailAddress"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />
            </com.google.android.material.textfield.TextInputLayout>

            <!-- Botão -->
            <com.google.android.material.button.MaterialButton
                android:id="@+id/btnSendInstructions"
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginTop="18dp"
                android:text="Enviar Instruções"
                android:textAllCaps="false"
                android:textSize="16sp"
                android:backgroundTint="#838996"
                android:textColor="@android:color/white"
                app:cornerRadius="15dp" />

            <!-- Dica -->
            <TextView
                android:layout_marginTop="14dp"
                android:padding="10dp"
                android:background="#F1F4FF"
                android:text="💡 Dica: Verifique também a pasta de spam se não receber o email."
                android:textSize="13sp"
                android:textColor="#3A3A3A"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />

            <!-- Voltar -->
            <TextView
                android:text="Voltar ao login"
                android:textSize="14sp"
                android:textColor="#1E52FF"
                android:layout_marginTop="18dp"
                android:gravity="center"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />
        </LinearLayout>
    </androidx.cardview.widget.CardView>

</androidx.constraintlayout.widget.ConstraintLayout>
