<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Login Notification - {{config('site.config._sitename')}}</title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6;">
    <p>Dear {{ $user->name ?? 'User' }},</p>

    <p>We noticed a successful login to your account on <strong>{{ config('site.config._live_site') }}</strong>.</p>

    <p><strong>Details:</strong></p>
    <ul>
        <li><strong>Email:</strong> {{ $user->email ?? 'N/A' }}</li>
        <li><strong>Time:</strong> {{ now()->format('F j, Y, g:i a') }}</li>
        <li><strong>IP Address:</strong> {{ $ip ?? 'Unknown' }}</li>
        <li><strong>Device/Browser:</strong> {{ $agent ?? 'Unknown' }}</li>
    </ul>

    <p>If this was you, no action is needed.</p>
    <p>If you did not log in, please reset your password immediately or contact our support team.</p>

    <p>Thank you,<br>{{ config('site.config._sitename') }}</p>
</body>
</html>