<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Password Changed - Security Alert</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 5px;
            margin-bottom: 20px;
        }
        .alert {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
        }
        .security-tips {
            background-color: #e9f7ef;
            border: 1px solid #c3e6cb;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
        }
        .footer {
            font-size: 0.9em;
            color: #666;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
    </style>
</head>
<body>
    <div class="header">
        <h2>🔒 Password Changed - Security Alert</h2>
    </div>
    
    <p>Hello {{ user.first_name|default:user.username }},</p>
    
    <div class="alert">
        <strong>⚠️ Security Notification:</strong> Your password was recently changed on {{ site.name }}.
    </div>
    
    <p>If you made this change, you can safely ignore this email.</p>
    
    <p><strong>If you did NOT make this change, please take immediate action:</strong></p>
    <ol>
        <li>Log into your account immediately</li>
        <li>Change your password</li>
        <li>Review your account settings</li>
        <li>Contact our support team if you need assistance</li>
    </ol>
    
    <p><strong>Change Details:</strong></p>
    <ul>
        <li>Date: {{ current_datetime|date:"F d, Y" }}</li>
        <li>Time: {{ current_datetime|time:"H:i" }} UTC</li>
    </ul>
    
    <div class="security-tips">
        <h4>🛡️ Security Recommendations:</h4>
        <ul>
            <li>Use a strong, unique password</li>
            <li>Enable two-factor authentication if available</li>
            <li>Regularly review your account activity</li>
        </ul>
    </div>
    
    <p>If you have any concerns about your account security, please contact our support team immediately.</p>
    
    <p>Best regards,<br>
    The {{ site.name }} Security Team</p>
    
    <div class="footer">
        <hr>
        <p><em>This is an automated security notification. Please do not reply to this email.</em></p>
    </div>
</body>
</html>