@extends('layouts.app')

@section('content')
<div class="min-h-[80vh] flex items-center justify-center bg-slate-50 py-12 px-4 sm:px-6 lg:px-8 relative overflow-hidden">
    
    <!-- Background Industrial Accent -->
    <div class="absolute inset-0 opacity-5 bg-[linear-gradient(#000000_1px,transparent_1px),linear-gradient(90deg,#000000_1px,transparent_1px)] bg-[size:40px_40px]"></div>

    <div class="max-w-md w-full space-y-8 bg-white p-10 rounded-2xl shadow-xl border border-slate-200 relative z-10" data-aos="fade-up">
        
        <!-- Header -->
        <div class="text-center">
            <h2 class="text-3xl font-black text-slate-900 uppercase tracking-tight">Welcome Back</h2>
            <p class="mt-2 text-sm text-slate-500 font-medium">Sign in to track orders and access your garage.</p>
        </div>

        <!-- Login Form -->
        <form class="mt-8 space-y-6" action="#" method="POST">
            <!-- Laravel CSRF Token (Zaroori hai backend ke liye) -->
            @csrf
            
            <div class="space-y-5">
                <!-- Mobile Number / Email Input -->
                <div>
                    <label for="phone" class="block text-xs font-bold text-slate-700 uppercase tracking-wide mb-2">Mobile Number or Email</label>
                    <div class="relative">
                        <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                            <svg class="h-5 w-5 text-slate-400" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"></path></svg>
                        </div>
                        <input id="phone" name="phone" type="text" required class="appearance-none block w-full pl-10 px-4 py-3 border border-slate-300 placeholder-slate-400 text-slate-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors font-medium sm:text-sm" placeholder="Enter your 10-digit number">
                    </div>
                </div>

                <!-- OTP Input -->
                <div>
                    <label for="otp" class="block text-xs font-bold text-slate-700 uppercase tracking-wide mb-2">One Time Password (OTP)</label>
                    <div class="relative">
                        <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                            <svg class="h-5 w-5 text-slate-400" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg>
                        </div>
                        <input id="otp" name="otp" type="text" required class="appearance-none block w-full pl-10 px-4 py-3 border border-slate-300 placeholder-slate-400 text-slate-900 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-colors font-medium sm:text-sm tracking-widest" placeholder="• • • •">
                    </div>
                    <!-- Helper Text for Testing -->
                    <div class="flex justify-between items-center mt-2">
                        <span class="text-xs text-slate-500">Test OTP: <strong class="text-blue-600 bg-blue-50 px-1 rounded">1234</strong></span>
                        <button type="button" class="text-xs font-bold text-blue-600 hover:text-blue-800 transition-colors">Resend OTP</button>
                    </div>
                </div>
            </div>

            <!-- Submit Button -->
            <div>
                <button type="submit" class="w-full flex justify-center py-3.5 px-4 border border-transparent text-sm font-bold rounded-lg text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-all duration-300 uppercase tracking-wide shadow-md hover:shadow-lg">
                    Verify & Login
                </button>
            </div>
        </form>

        <!-- Divider -->
        <div class="mt-8">
            <div class="relative">
                <div class="absolute inset-0 flex items-center">
                    <div class="w-full border-t border-slate-200"></div>
                </div>
                <div class="relative flex justify-center text-sm">
                    <span class="px-4 bg-white text-slate-500 font-bold uppercase tracking-wide text-xs">Or continue with</span>
                </div>
            </div>
        </div>

        <!-- Google Login Button -->
        <div class="mt-6">
            <a href="#" class="w-full flex items-center justify-center px-4 py-3 border border-slate-300 rounded-lg shadow-sm bg-white text-sm font-bold text-slate-700 hover:bg-slate-50 hover:border-slate-400 transition-all duration-300">
                <svg class="h-5 w-5 mr-3" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" fill="#4285F4"/>
                    <path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"/>
                    <path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" fill="#FBBC05"/>
                    <path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"/>
                </svg>
                Sign in with Google
            </a>
        </div>
        
        <!-- Bottom Link -->
        <p class="mt-8 text-center text-xs text-slate-500 font-medium">
            By signing in, you agree to our 
            <a href="#" class="text-blue-600 hover:text-blue-800 transition-colors">Terms of Service</a> and 
            <a href="#" class="text-blue-600 hover:text-blue-800 transition-colors">Privacy Policy</a>.
        </p>
    </div>
</div>
@endsection