<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Verify OTP - Immia Finance</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body class="bg-gray-50 min-h-screen flex items-center justify-center">
    <div class="max-w-md w-full mx-4 py-10">
        
        <div class="bg-white rounded-2xl shadow-lg p-8">
            
            <div class="text-center mb-8">
                <div class="flex items-center justify-center space-x-3 mb-4">
                    <div class="w-12 h-12 bg-blue-600 rounded-lg flex items-center justify-center">
                        <i class="fas fa-shield-alt text-white text-xl"></i>
                    </div>
                    <div>
                        <h1 class="text-2xl font-bold text-gray-900">IMMIA FINANCE</h1>
                        <p class="text-blue-600 text-sm font-semibold">Secure Verification</p>
                    </div>
                </div>
                <h2 class="text-3xl font-bold text-gray-900">Verify Identity</h2>
                <p class="text-gray-600 mt-2">Enter the 6-digit code sent to you</p>
            </div>

            <?php if(session('success')): ?>
                <div class="bg-green-50 border border-green-200 text-green-700 px-4 py-3 rounded-lg mb-6 text-sm flex items-center">
                    <i class="fas fa-check-circle mr-2"></i>
                    <?php echo e(session('success')); ?>

                </div>
            <?php endif; ?>

            <?php if(session('error')): ?>
                <div class="bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg mb-6 text-sm flex items-center">
                    <i class="fas fa-exclamation-circle mr-2"></i>
                    <?php echo e(session('error')); ?>

                </div>
            <?php endif; ?>

            <form method="POST" action="<?php echo e(route('customer.password.update')); ?>">
                <?php echo csrf_field(); ?>

                <div class="mb-8">
                    <label class="block text-center text-sm font-semibold text-gray-600 mb-4 uppercase tracking-wider">Verification Code</label>
                    <input 
                        type="text" 
                        name="otp" 
                        maxlength="6" 
                        placeholder="000000"
                        value="<?php echo e(old('otp')); ?>"
                        required 
                        autofocus
                        class="w-full text-center text-3xl tracking-[0.5em] font-bold py-4 border-2 border-blue-100 rounded-xl focus:border-blue-500 focus:ring-0 transition-all bg-blue-50/30"
                    >
                    <?php $__errorArgs = ['otp'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <p class="text-red-500 text-xs mt-2 text-center font-medium"><?php echo e($message); ?></p>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                <hr class="mb-6 border-gray-100">

                <div class="mb-4">
                    <label class="block text-sm font-medium text-gray-700 mb-2">New Password</label>
                    <input type="password" name="password" required 
                           class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors">
                    <?php $__errorArgs = ['password'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <p class="text-red-500 text-xs mt-1"><?php echo e($message); ?></p>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                <div class="mb-6">
                    <label class="block text-sm font-medium text-gray-700 mb-2">Confirm New Password</label>
                    <input type="password" name="password_confirmation" required 
                           class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors">
                </div>

                <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-3 px-6 rounded-lg font-semibold shadow-md transition-all flex items-center justify-center">
                    <i class="fas fa-key mr-2"></i> Reset & Login
                </button>
            </form>

            <div class="mt-8 pt-6 border-t border-gray-100 text-center">
                <p class="text-sm text-gray-600 mb-2">Didn't receive the code?</p>
                
                <form id="resendForm" method="POST" action="<?php echo e(route('customer.password.resend')); ?>">
                    <?php echo csrf_field(); ?>
                    <button type="submit" id="resendBtn" class="text-blue-600 font-bold hover:text-blue-700 disabled:text-gray-400 disabled:cursor-not-allowed transition-colors inline-flex items-center">
                        Resend Code <span id="timer" class="ml-1"></span>
                    </button>
                </form>
            </div>
        </div>

        <div class="mt-6 text-center">
            <a href="<?php echo e(route('customer.login')); ?>" class="text-gray-500 hover:text-blue-600 text-sm font-medium transition-colors">
                <i class="fas fa-arrow-left mr-1"></i> Back to Login
            </a>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            let seconds = 60;
            const timerDisplay = document.getElementById('timer');
            const resendBtn = document.getElementById('resendBtn');

            function startTimer() {
                resendBtn.disabled = true;
                const countdown = setInterval(() => {
                    seconds--;
                    timerDisplay.textContent = `(${seconds}s)`;
                    
                    if (seconds <= 0) {
                        clearInterval(countdown);
                        timerDisplay.textContent = "";
                        resendBtn.disabled = false;
                        seconds = 60;
                    }
                }, 1000);
            }
            startTimer();
        });
    </script>
</body>
</html><?php /**PATH /home/topacvbu/public_html/zedbankos.cloud/customer-portal/resources/views/auth/reset-password-otp.blade.php ENDPATH**/ ?>