<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Password Reset - LeagueLedger</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f9f9f9;
        }
        .container {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        .header {
            background-color: #2D7738;
            padding: 20px;
            text-align: center;
            color: white;
        }
        .content {
            padding: 30px;
            background-color: #ffffff;
        }
        .security-note {
            padding: 15px;
            margin: 20px 0;
            background-color: #fff8e1;
            border-left: 3px solid #ffd54f;
            border-radius: 5px;
        }
        .button-container {
            margin: 25px 0;
            text-align: center;
        }
        .button {
            display: inline-block;
            background-color: #2D7738;
            color: white;
            text-decoration: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 500;
        }
        .link-help {
            margin-top: 20px;
            padding: 15px;
            background-color: #f5f5f5;
            border-radius: 5px;
            font-size: 14px;
        }
        .footer {
            padding: 20px;
            text-align: center;
            font-size: 12px;
            color: #777;
            border-top: 1px solid #eaeaea;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>Password Reset</h1>
        </div>
        
        <div class="content">
            <p>Hello {{ username }},</p>
            
            <p>We received a request to reset your password for your LeagueLedger account. You can set a new password by clicking the button below:</p>
            
            <div class="button-container">
                <a href="{{ reset_url }}" class="button">Reset My Password</a>
            </div>
            
            <div class="security-note">
                <p><strong>Security Note:</strong> This link will expire in 24 hours for your protection. If you did not request a password reset, please disregard this email and consider reviewing your account security.</p>
            </div>
            
            <div class="link-help">
                <p>If the button above doesn't work, you can copy and paste this link into your browser:</p>
                <p><a href="{{ reset_url }}">Reset your password</a></p>
            </div>
            
            <p>With LeagueLedger, you can continue to:</p>
            <ul>
                <li>Track your team's progress in pub quiz events</li>
                <li>View your rank on the leaderboard</li>
                <li>Manage your team memberships</li>
                <li>Redeem QR codes for points</li>
            </ul>
            
            <p>Best regards,<br>The LeagueLedger Team</p>
        </div>
        
        <div class="footer">
            <p>© 2025 LeagueLedger. All rights reserved.</p>
            <p>This email was sent in response to your password reset request.</p>
        </div>
    </div>
</body>
</html>
