<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Shift Signup Confirmation - {{SHIFT_TITLE}}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 30px;
            border: 1px solid #e0e0e0;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #2563eb;
            padding-bottom: 20px;
        }
        .logo {
            color: #2563eb;
            font-size: 24px;
            font-weight: bold;
        }
        .shift-badge {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            display: inline-block;
            margin-top: 10px;
        }
        .content {
            background-color: white;
            padding: 25px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #2563eb;
        }
        .info-section {
            background-color: #eff6ff;
            padding: 15px;
            border-radius: 4px;
            margin: 20px 0;
            border: 1px solid #bfdbfe;
        }
        .info-item {
            margin: 8px 0;
            display: flex;
            align-items: center;
        }
        .info-label {
            font-weight: bold;
            display: inline-block;
            width: 100px;
            color: #1e40af;
        }
        .info-value {
            color: #2c3e50;
        }
        .new-user-section {
            background-color: #fef3c7;
            padding: 15px;
            border-radius: 4px;
            margin: 20px 0;
            border: 1px solid #fde68a;
        }
        .new-user-section strong {
            color: #92400e;
        }
        .password-box {
            background: #fff;
            border: 2px dashed #d97706;
            padding: 10px 16px;
            border-radius: 6px;
            font-family: monospace;
            font-size: 18px;
            text-align: center;
            margin: 10px 0;
            letter-spacing: 1px;
        }
        .btn {
            display: inline-block;
            padding: 12px 28px;
            border-radius: 6px;
            font-size: 15px;
            font-weight: bold;
            text-decoration: none;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
        }
        .footer {
            text-align: center;
            font-size: 12px;
            color: #6c757d;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }
        .app-branding {
            color: #2563eb;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="logo">{{ORGANIZATION_NAME}}</div>
            <div class="shift-badge">Volunteer Shift</div>
            <p style="margin: 10px 0 0 0; color: #6c757d;">Signup Confirmation</p>
        </div>

        <div class="content">
            <p>Hi {{USER_NAME}},</p>
            <p>You're confirmed for the following volunteer shift:</p>

            <div class="info-section">
                <h4 style="margin: 0 0 10px 0; color: #1e40af;">Shift Details:</h4>
                <div class="info-item">
                    <span class="info-label">Shift:</span>
                    <span class="info-value"><strong>{{SHIFT_TITLE}}</strong></span>
                </div>
                <div class="info-item">
                    <span class="info-label">Date:</span>
                    <span class="info-value">{{SHIFT_DATE}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Time:</span>
                    <span class="info-value">{{SHIFT_TIME}}</span>
                </div>
                <div class="info-item">
                    <span class="info-label">Location:</span>
                    <span class="info-value">{{SHIFT_LOCATION}}</span>
                </div>
            </div>
        </div>

        {{#if IS_NEW_USER}}
        <div class="new-user-section">
            <strong>A temporary account has been created for you.</strong>
            <p style="margin: 8px 0;">You can use this account to manage your volunteer signups:</p>
            <div class="password-box">{{TEMP_PASSWORD}}</div>
            <p style="margin: 8px 0 0 0; font-size: 13px;">
                Log in with your email (<strong>{{USER_EMAIL}}</strong>) and the password above.
            </p>
            <div style="text-align: center; margin-top: 15px;">
                <a href="{{LOGIN_URL}}" class="btn">Log In</a>
            </div>
        </div>
        {{/if}}

        <div class="footer">
            <p>This confirmation was sent via <span class="app-branding">{{ORGANIZATION_NAME}}</span></p>
            <p>If you did not sign up for this shift, you can safely ignore this email.</p>
        </div>
    </div>
</body>
</html>
