@extends('layouts.auth')

@section('title', 'Verify Email')

@section('content')
<div class="min-h-screen flex items-center justify-center gradient-bg p-4">
    <div class="w-full max-w-md animate-fade-in">
        <div class="bg-white rounded-2xl shadow-2xl p-8">
            <div class="text-center mb-8">
                <div class="inline-flex items-center justify-center w-16 h-16 bg-green-100 rounded-full mb-4">
                    <i class="fas fa-envelope text-2xl text-green-600"></i>
                </div>
                <h2 class="text-2xl font-bold text-gray-800">Verify Your Email</h2>
                <p class="text-gray-500 mt-2">Thanks for signing up! Please verify your email address.</p>
            </div>

            @if (session('status') == 'verification-link-sent')
                <div class="mb-6 p-4 bg-green-100 text-green-700 rounded-lg">
                    <i class="fas fa-check-circle mr-2"></i>
                    A new verification link has been sent to your email address.
                </div>
            @endif

            <div class="text-sm text-gray-600 mb-6 leading-relaxed">
                Before getting started, please verify your email address by clicking on the link we just emailed to you. 
                If you didn't receive the email, click below to request another.
            </div>

            <div class="space-y-4">
                <form method="POST" action="{{ route('verification.send') }}">
                    @csrf
                    <button type="submit" 
                        class="w-full bg-primary-600 text-white py-3 rounded-lg font-semibold hover:bg-primary-700 btn-hover transition duration-200">
                        <i class="fas fa-paper-plane mr-2"></i>Resend Verification Email
                    </button>
                </form>

                <form method="POST" action="{{ route('logout') }}" class="text-center">
                    @csrf
                    <button type="submit" class="text-gray-500 hover:text-gray-700 text-sm underline">
                        Sign out
                    </button>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
