<x-guest-layout>
    <div class="mb-4 text-sm text-gray-600">
        {{ __('Please set your new password below.') }}
    </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.reset.submit') }}">
        @csrf

        <!-- Password -->
        <div class="mb-4">
            <label for="password" class="block text-sm font-medium text-gray-700">New Password</label>
            <div class="mt-1 relative rounded-md shadow-sm">
                <input id="password" 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('password') border-red-300 @enderror" type="password" name="password" required autofocus />
            </div>
            @error('password')
                <p class="mt-2 text-sm text-red-600" id="password-error">{{ $message }}</p>
            @enderror
        </div>

        <!-- Confirm Password -->
        <div>
            <label for="password_confirmation" class="block text-sm font-medium text-gray-700">Confirm Password</label>
            <div class="mt-1 relative rounded-md shadow-sm">
                <input id="password_confirmation" 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" type="password" name="password_confirmation" required />
            </div>
        </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">
                Reset Password
            </button>
        </div>
    </form>
</x-guest-layout>
