<x-guest-layout>
    <div class="mb-4 text-sm text-gray-600">
        {{ __('Please enter the 6-digit OTP you received from the admin.') }}
    </div>

    <!-- Session Status -->
    @if (session('success'))
        <div class="mb-4 font-medium text-sm text-green-600">
            {{ session('success') }}
        </div>
    @endif

    <form method="POST" action="{{ route('password.otp.verify') }}">
        @csrf

        <!-- OTP Code -->
        <div>
            <label for="otp_code" class="block text-sm font-medium text-gray-700">OTP Code</label>
            <div class="mt-1 relative rounded-md shadow-sm">
                <input id="otp_code" class="block w-full py-2.5 px-3 sm:text-sm border-gray-300 rounded-lg focus:ring-primary-500 focus:border-primary-500 @error('otp_code') border-red-300 @enderror" type="text" name="otp_code" required autofocus placeholder="123456" />
            </div>
            @error('otp_code')
                <p class="mt-2 text-sm text-red-600" id="otp-error">{{ $message }}</p>
            @enderror
        </div>

        <div class="flex items-center justify-end mt-4">
            <button type="submit" class="inline-flex justify-center py-2.5 px-4 border border-transparent rounded-lg shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 transition-colors duration-200">
                Verify OTP
            </button>
        </div>
    </form>
</x-guest-layout>
