<?php
/**
 * Email template for security token
 */
$htmlBody = <<<HTML
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
            background-color: #ffffff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header {
            background-color: #2c3e50;
            color: #ffffff;
            padding: 30px;
            text-align: center;
        }
        .header h1 {
            margin: 0;
            font-size: 24px;
        }
        .content {
            padding: 40px 30px;
        }
        .token-box {
            background-color: #f8f9fa;
            border: 2px dashed #3498db;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            margin: 30px 0;
        }
        .token {
            font-size: 36px;
            font-weight: bold;
            color: #2c3e50;
            letter-spacing: 8px;
        }
        .info {
            color: #666666;
            font-size: 14px;
            margin-top: 20px;
        }
        .info p {
            margin: 5px 0;
        }
        .footer {
            background-color: #f8f9fa;
            padding: 20px 30px;
            text-align: center;
            font-size: 12px;
            color: #999999;
        }
        .warning {
            background-color: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 4px;
            padding: 15px;
            margin-top: 20px;
            font-size: 13px;
            color: #856404;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>%APP_NAME%</h1>
        </div>
        <div class="content">
            <h2>Security Verification</h2>
            <p>A security code has been generated for your account. Use the following code to complete your login:</p>

            <div class="token-box">
                <div class="token">%TOKEN_ACCESO%</div>
            </div>

            <div class="info">
                <p><strong>Created:</strong> %FECHA_CREACION%</p>
                <p><strong>Expires:</strong> %FECHA_EXPIRACION%</p>
            </div>

            <div class="warning">
                <strong>Important:</strong> This code is valid for 10 minutes. Do not share this code with anyone.
                If you did not request this code, please ignore this email.
            </div>
        </div>
        <div class="footer">
            <p>This is an automated message from %APP_NAME%</p>
            <p>%APP_URL%</p>
        </div>
    </div>
</body>
</html>
HTML;
