<?php
// 1. टाइमज़ोन सेट करें
date_default_timezone_set('Asia/Kolkata');
$current_time = date('M d, Y, g:i:s A', time());

// 2. कॉन्फ़िगरेशन फ़ाइल शामिल करें
include('includes/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Recover Password</title>
    <!-- Google Fonts & FontAwesome Icons -->
	<script disable-devtool-auto src="https://cdn.jsdelivr.net/npm/disable-devtool@latest"></script>

    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- SweetAlert2 CSS (अगर आप बैकएंड पर अलर्ट दिखाना चाहें) -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .login-container {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 40px;
            width: 100%;
            max-width: 450px;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            color: #fff;
        }

        .login-header {
            text-align: center;
            margin-bottom: 35px;
        }

        .login-header .logo-icon {
            font-size: 3rem;
            color: #00f2fe;
            margin-bottom: 15px;
            text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
        }

        .login-header h2 {
            font-size: 1.8rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }

        .login-header p {
            font-size: 0.85rem;
            color: #cbd5e1;
            line-height: 1.5;
        }

        .form-group {
            position: relative;
            margin-bottom: 25px;
        }

        .form-group i.input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #cbd5e1;
            font-size: 1.1rem;
            transition: 0.3s;
        }

        .form-control {
            width: 100%;
            padding: 15px 20px 15px 45px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            outline: none;
            color: #fff;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            background: rgba(255, 255, 255, 0.15);
            border-color: #00f2fe;
            box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
        }

        .form-control::placeholder {
            color: #94a3b8;
        }

        .form-control:focus ~ i.input-icon {
            color: #00f2fe;
        }

        .login-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 242, 254, 0.6);
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .login-btn:active {
            transform: translateY(0);
        }

        .form-footer {
            text-align: center;
            margin-top: 25px;
            font-size: 0.85rem;
            color: #cbd5e1;
        }

        .form-footer a {
            color: #00f2fe;
            text-decoration: none;
            font-weight: 500;
            transition: 0.3s;
        }

        .form-footer a:hover {
            text-decoration: underline;
            color: #fff;
        }
    </style>
</head>
<body>

    <div class="login-container">
        <div class="login-header">
            <div class="logo-icon"><i class="fa-solid fa-key"></i></div>
            <h2>Forgot Password?</h2>
            <p>Enter your details below and we will help you retrieve or reset a new password easily.</p>
        </div>

        <form action="recover-password" method="POST" autocomplete="off">
            <!-- Hidden Security Key Token -->
            <input type="hidden" name="fsecret" value="ahkwebsolutions_reset">

            <!-- Username / Email / Phone Field -->
            <div class="form-group">
                <i class="fa-solid fa-user-shield input-icon"></i>
                <input type="text" class="form-control" name="username" placeholder="Email, Phone or User ID" required>
            </div>

            <!-- Submit Button -->
            <button type="submit" class="login-btn">Request an OTP</button>
        </form>

        <div class="form-footer">
            <p><a href="index"><i class="fa-solid fa-arrow-left-long" style="margin-right: 5px;"></i> Click to Login</a></p>
        </div>
    </div>

    <!-- Scripts (jQuery & SweetAlert2) -->
    <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
</body>
</html>