<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Your One-Time Password</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            text-align: center;
            padding: 20px 0;
        }
        .logo {
            max-width: 150px;
        }
        .content {
            background-color: #f9f9f9;
            padding: 30px;
            border-radius: 8px;
            margin: 20px 0;
        }
        .otp-code {
            font-size: 32px;
            letter-spacing: 5px;
            text-align: center;
            margin: 25px 0;
            padding: 15px;
            background-color: #ffffff;
            border-radius: 5px;
            color: #2c3e50;
            font-weight: bold;
        }
        .footer {
            text-align: center;
            font-size: 12px;
            color: #777777;
            margin-top: 30px;
        }
        .button {
            display: inline-block;
            padding: 12px 24px;
            background-color: #3498db;
            color: white !important;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            margin: 15px 0;
        }
    </style>
</head>
<body>
    <div class="header">
        <!-- Replace with your logo -->
        <img src="https://globalforexglg.in/assets/images/logo-3.png" alt="Global Forex" class="logo">
    </div>
    
    <div class="content">
        <h2 style="text-align: center; color: #2c3e50;">Your One-Time Password</h2>
        
        <p style="text-align: center;">Hello Client,</p>
        
        <p style="text-align: center;">Here is your one-time password (OTP) to access your account:</p>
        
        <div class="otp-code"><?php echo $rand;?></div>
        
        <p style="text-align: center;">This code will expire in 10 minutes. Please do not share it with anyone.</p>
        
        <p style="text-align: center;">If you didn't request this code, please ignore this email or contact support.</p>
        
        <div style="text-align: center; margin-top: 30px;">
            <a href="#" class="button">HAPPY TRADING</a>
        </div>
    </div>
    
    <div class="footer">
        <p>© 2025 Forex Global. All rights reserved.</p>
        <p>
            <a href="#" style="color: #3498db; text-decoration: none;">Privacy Policy</a> | 
            <a href="#" style="color: #3498db; text-decoration: none;">Terms of Service</a>
        </p>
    </div>
</body>
</html>