<?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"
    android:background="@drawable/bg_login_gradient"
    android:fillViewport="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"
        android:orientation="vertical"
        android:padding="32dp">

        <Space
            android:layout_width="match_parent"
            android:layout_height="40dp" />

        <ImageView
            android:layout_width="140dp"
            android:layout_height="140dp"
            android:layout_marginBottom="16dp"
            android:src="@drawable/logo_bem"
            android:elevation="8dp"
            android:contentDescription="Logo Bem+" />



        <TextView
            android:id="@+id/textStoredAccounts"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="12dp"
            android:text="Contas Guardadas"
            android:textColor="@color/neutral_dark"
            android:textStyle="bold"
            android:visibility="gone" />

        <LinearLayout
            android:id="@+id/storedAccountsContainer"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginBottom="24dp"
            android:visibility="gone" />

        <TextView
            android:id="@+id/textLoginType"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="24dp"
            android:text="Bem-vindo de volta"
            android:textColor="@color/neutral_dark"
            android:textSize="20sp"
            android:textStyle="bold" />

        <EditText
            android:id="@+id/inputEmail"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="@drawable/bg_new_input"
            android:hint="Email"
            android:inputType="textEmailAddress"
            android:padding="16dp"
            android:textColor="@color/neutral_dark"
            android:textColorHint="@color/text_hint"
            android:textSize="15sp"
            android:elevation="2dp" />

        <EditText
            android:id="@+id/inputPassword"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:background="@drawable/bg_new_input"
            android:hint="Palavra-passe"
            android:inputType="textPassword"
            android:padding="16dp"
            android:textColor="@color/neutral_dark"
            android:textColorHint="@color/text_hint"
            android:textSize="15sp"
            android:elevation="2dp" />

        <EditText
            android:id="@+id/inputName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:background="@drawable/bg_new_input"
            android:hint="Nome completo"
            android:inputType="textPersonName"
            android:padding="16dp"
            android:textColor="@color/neutral_dark"
            android:textColorHint="@color/text_hint"
            android:textSize="15sp"
            android:elevation="2dp"
            android:visibility="gone" />

        <EditText
            android:id="@+id/inputPhone"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:background="@drawable/bg_new_input"
            android:hint="Número de telemóvel (opcional)"
            android:inputType="phone"
            android:padding="16dp"
            android:textColor="@color/neutral_dark"
            android:textColorHint="@color/text_hint"
            android:textSize="15sp"
            android:elevation="2dp"
            android:visibility="gone" />

        <TextView
            android:id="@+id/textForgotPassword"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:padding="8dp"
            android:layout_gravity="end"
            android:text="Esqueceu-se da password?"
            android:textColor="@color/neutral_medium"
            android:textSize="13sp" />

        <Button
            android:id="@+id/btnLogin"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="24dp"
            android:background="@drawable/bg_new_button"
            android:padding="16dp"
            android:text="Entrar"
            android:textAllCaps="false"
            android:textColor="@android:color/white"
            android:textSize="16sp"
            android:textStyle="bold"
            android:elevation="4dp" />

        <TextView
            android:id="@+id/textSwitchMode"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="24dp"
            android:padding="8dp"
            android:text="Não tem conta? Registar"
            android:textColor="@color/primary_soft"
            android:textStyle="bold"
            android:textSize="14sp" />

        <View
            android:layout_width="match_parent"
            android:layout_height="1dp"
            android:layout_marginVertical="32dp"
            android:background="#1A000000" />

        <TextView
            android:id="@+id/textSwitchToGuardian"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/bg_guardian_chip"
            android:paddingHorizontal="24dp"
            android:paddingVertical="12dp"
            android:text="🔒 Sou Responsável"
            android:textColor="@color/guardian_purple_end"
            android:textSize="14sp"
            android:textStyle="bold" />
    </LinearLayout>
</ScrollView>

