<Window
    xmlns="https://github.com/avaloniaui"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignWidth="500"
    d:DesignHeight="400"
    x:Class="LauncherGUI.Views.SessionManagmentWindow"
    Icon="/Assets/Sprites/icon.png"
    Title="Account manager"
    RequestedThemeVariant="Dark"
    Width="500"
    Height="400"
    MinWidth="500"
    MinHeight="400"
    MaxWidth="500"
    MaxHeight="400"
    Background="#542434"
>

    <StackPanel>
        <Border
            Width="500"
            Background="#94a285"
            Padding="10"
            HorizontalAlignment="Center"
        >
            <StackPanel>

                <TextBlock
                    Text="Current session info"
                    FontFamily="{StaticResource QuicksandFont}"
                    HorizontalAlignment="Center"
                />

                <StackPanel Orientation="Horizontal">
                    <TextBlock
                        Text="Session nickname: "
                        FontFamily="{StaticResource QuicksandFont}"
                    />
                    <TextBlock x:Name="currentNickname" Foreground="#d9ccfb"/>
                </StackPanel>

                <StackPanel Orientation="Horizontal">
                    <TextBlock
                        Text="Session login method: "
                        FontFamily="{StaticResource QuicksandFont}"
                    />
                    <TextBlock x:Name="loginMethod" Foreground="#d9ccfb" />
                </StackPanel>

                <StackPanel Orientation="Horizontal">
                    <TextBlock
                        Text="Session uuid: "
                        FontFamily="{StaticResource QuicksandFont}"
                    />
                    <TextBlock x:Name="currentUuid" Foreground="#d9ccfb" />
                </StackPanel>

            </StackPanel>

        </Border>

        <!-- This is quite junky, but It should look simillar. -->
        <Border
            Width="500"
            Background="#504254"
            Padding="10"
            HorizontalAlignment="Center"
        >
            <TextBlock
                Text="OFFLINE METHOD"
                FontFamily="{StaticResource QuicksandFont}"
                HorizontalAlignment="Center"
            />
        </Border>

        <Border
            Width="500"
            Background="#504254"
            Padding="10"
            HorizontalAlignment="Center"
        >
            <StackPanel HorizontalAlignment="Center">

                <TextBlock
                    Text="Insert username:"
                    FontFamily="{StaticResource QuicksandFont}"
                />
                <TextBox
                    x:Name="inputNickname"
                    Width="200"
                    HorizontalAlignment="Left"
                />

                <Button
                    FontFamily="{StaticResource QuicksandFont}"
                    Content="Save"
                    HorizontalAlignment="Center"
                    Click="OnSaveButtonClick"
                />


            </StackPanel>
        </Border>

        <Border
            Width="500"
            Background="#542434"
            Padding="10"
            HorizontalAlignment="Center"
        >

            <TextBlock
                Text="LICENSED METHOD"
                FontFamily="{StaticResource QuicksandFont}"
                HorizontalAlignment="Center"
            />
        </Border>

        <Border
            Width="500"
            Background="#542434"
            Padding="10"
            HorizontalAlignment="Center"
        >

            <StackPanel
                Grid.Row="1"
                Grid.Column="0"
                Orientation="Horizontal"
                HorizontalAlignment="Center"
            >
                <Image
                    Height="30"
                    Width="30"
                    Source="/Assets/Sprites/microsoft-logo.png"
                    Stretch="Uniform"
                />

                <Button
                    Content="Login with Microsoft"
                    Click="OnMicrosoftLoginClick"
                />
            </StackPanel>

        </Border>

    </StackPanel>

</Window>