<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login – SMART Academy</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
    <?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
</head>
<body class="font-poppins antialiased">
<div class="min-h-screen flex" style="background: linear-gradient(135deg, #111 0%, #1a0505 50%, #111 100%)">

    
    <div class="hidden lg:flex flex-1 flex-col justify-center px-16 relative overflow-hidden">
        <img src="<?php echo e(asset('images/classroom-hero.jpg')); ?>" alt="" class="absolute inset-0 w-full h-full object-cover opacity-20">
        <div class="relative z-10">
            <?php if (isset($component)) { $__componentOriginal0482399b91b2c9677290278fe88974ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0482399b91b2c9677290278fe88974ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.smart.logo','data' => ['white' => true,'height' => 52]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('smart.logo'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['white' => true,'height' => 52]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0482399b91b2c9677290278fe88974ab)): ?>
<?php $attributes = $__attributesOriginal0482399b91b2c9677290278fe88974ab; ?>
<?php unset($__attributesOriginal0482399b91b2c9677290278fe88974ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0482399b91b2c9677290278fe88974ab)): ?>
<?php $component = $__componentOriginal0482399b91b2c9677290278fe88974ab; ?>
<?php unset($__componentOriginal0482399b91b2c9677290278fe88974ab); ?>
<?php endif; ?>
            <h2 class="text-5xl font-black text-white leading-[1.1] mt-10 mb-5">
                Your Learning<br><span class="text-[#ED1C24]">Journey Starts</span><br>Here.
            </h2>
            <p class="text-white/55 text-base leading-relaxed max-w-sm">
                Access your subjects, lesson recaps, quiz results, and class timetable — all in one place.
            </p>
            <div class="flex flex-wrap gap-3 mt-12">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = ['Lesson Recaps','Quiz Results','Live Timetable','Progress Tracker']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $f): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <span class="bg-white/08 border border-white/12 rounded-full px-4 py-2 text-sm text-white/75 font-semibold">✓ <?php echo e($f); ?></span>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
            </div>
        </div>
    </div>

    
    <div class="flex items-center justify-center w-full lg:w-auto px-6 lg:px-16 py-10">
        <div class="bg-white rounded-3xl p-8 lg:p-12 w-full max-w-md shadow-[0_40px_80px_rgba(0,0,0,0.35)]">
            <div class="mb-8">
                <a href="<?php echo e(route('home')); ?>"
                   class="inline-flex items-center gap-2 text-gray-400 text-sm hover:text-gray-600 transition mb-7">
                    <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" viewBox="0 0 24 24"><path d="M19 12H5M12 5l-7 7 7 7"/></svg>
                    Back to website
                </a>
                <div class="flex justify-center mb-5"><?php if (isset($component)) { $__componentOriginal0482399b91b2c9677290278fe88974ab = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal0482399b91b2c9677290278fe88974ab = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.smart.logo','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('smart.logo'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal0482399b91b2c9677290278fe88974ab)): ?>
<?php $attributes = $__attributesOriginal0482399b91b2c9677290278fe88974ab; ?>
<?php unset($__attributesOriginal0482399b91b2c9677290278fe88974ab); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0482399b91b2c9677290278fe88974ab)): ?>
<?php $component = $__componentOriginal0482399b91b2c9677290278fe88974ab; ?>
<?php unset($__componentOriginal0482399b91b2c9677290278fe88974ab); ?>
<?php endif; ?></div>
                <h1 class="text-2xl font-black text-gray-900 text-center">Welcome Back</h1>
                <p class="text-sm text-gray-500 text-center mt-1.5">Sign in to your SMART Academy portal</p>
            </div>

            <?php if (isset($component)) { $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-session-status','data' => ['class' => 'mb-4 text-sm text-emerald-600 bg-emerald-50 rounded-xl px-4 py-3','status' => session('status')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('auth-session-status'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => 'mb-4 text-sm text-emerald-600 bg-emerald-50 rounded-xl px-4 py-3','status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(session('status'))]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
<?php $attributes = $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
<?php unset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
<?php $component = $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
<?php unset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
<?php endif; ?>

            
            <div class="bg-blue-50 border border-blue-100 rounded-xl px-4 py-3 mb-6 text-xs text-blue-700">
                <strong>Demo credentials:</strong><br>
                Admin: admin@smart.lk / password<br>
                Teacher: ruwan.sir@smart.lk / password<br>
                Student: amal.perera@student.smart.lk / password
            </div>

            <form method="POST" action="<?php echo e(route('login')); ?>" class="space-y-4">
                <?php echo csrf_field(); ?>
                <div>
                    <label class="block text-xs font-bold text-gray-500 tracking-wider mb-2">EMAIL</label>
                    <input id="email" type="email" name="email" value="<?php echo e(old('email')); ?>" required autofocus
                           class="w-full rounded-xl border <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> border-red-400 <?php else: ?> border-gray-200 <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> px-4 py-3.5 text-sm focus:outline-none focus:ring-2 focus:ring-red-400/30 focus:border-red-400 transition">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['email'];
$__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); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
                <div>
                    <label class="block text-xs font-bold text-gray-500 tracking-wider mb-2">PASSWORD</label>
                    <input id="password" type="password" name="password" required
                           class="w-full rounded-xl border border-gray-200 px-4 py-3.5 text-sm focus:outline-none focus:ring-2 focus:ring-red-400/30 focus:border-red-400 transition">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?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); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
                <div class="flex items-center justify-between">
                    <label class="flex items-center gap-2 text-sm text-gray-600 cursor-pointer">
                        <input type="checkbox" name="remember" class="rounded border-gray-300 text-[#ED1C24] focus:ring-red-400/30">
                        Remember me
                    </label>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(Route::has('password.request')): ?>
                        <a href="<?php echo e(route('password.request')); ?>" class="text-sm text-[#ED1C24] font-semibold hover:underline">Forgot password?</a>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
                <button type="submit"
                        class="w-full bg-[#ED1C24] text-white rounded-xl py-4 font-bold text-base shadow-[0_6px_20px_rgba(237,28,36,0.4)] hover:bg-red-700 transition mt-2">
                    Sign In
                </button>
            </form>
        </div>
    </div>
</div>
</body>
</html>
<?php /**PATH D:\Supun\smart academy\smart-academy\resources\views/auth/login.blade.php ENDPATH**/ ?>