<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Dashboard.aspx.cs"
    Inherits="UserAuthApp.Web.Dashboard" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Dashboard - User Authentication</title>
    <style>
        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background-color: #f0f2f5;
            margin: 0;
            padding: 20px;
        }
        .container {
            width: 500px;
            margin: 60px auto;
            padding: 35px;
            background: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }
        h2 {
            color: #1a1a2e;
            margin-bottom: 10px;
        }
        .user-info {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin: 20px 0;
        }
        .user-info p {
            margin: 8px 0;
            font-size: 15px;
            color: #555;
        }
        .user-info p strong {
            color: #333;
        }
        .btn-logout {
            padding: 12px 25px;
            background-color: #dc3545;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
        }
        .btn-logout:hover {
            background-color: #c82333;
        }
    </style>
</head>
<body>
    <form id="frmDashboard" runat="server">
        <div class="container">
            <h2><asp:Label ID="lblWelcome" runat="server" /></h2>
            <p>You are successfully logged in. This page is protected.</p>

            <div class="user-info">
                <p><strong>Email:</strong> <asp:Label ID="lblEmail" runat="server" /></p>
                <p><strong>Username:</strong> <asp:Label ID="lblUsername" runat="server" /></p>
                <p><strong>Member Since:</strong> <asp:Label ID="lblMemberSince" runat="server" /></p>
            </div>

            <asp:Button ID="btnLogout" runat="server" Text="Sign Out"
                CssClass="btn-logout" OnClick="btnLogout_Click" />
        </div>
    </form>
</body>
</html>
