@extends('layouts.guest')

@section('content')
<div class="text-center mb-4">
    <h4 class="fw-bold">Student Login</h4>
</div>

<div class="text-center mb-3">
    <img src="{{ asset('images/logo.png') }}" alt="Culinary Logo" style="max-height: 80px;">
</div>

<form method="POST" action="{{ route('login') }}">
    @csrf

    <div class="mb-3">
        <label for="email" class="form-label">Registration Number</label>
        <input type="text" class="form-control" id="email" name="email" placeholder="Enter Reg Number" value="{{ old('email') }}" required autofocus>
        @error('email')
            <div class="text-danger small mt-1">{{ $message }}</div>
        @enderror
    </div>

    <div class="mb-3">
        <label for="password" class="form-label">Password</label>
        <input type="password" class="form-control" id="password" name="password" placeholder="Enter Password" required>
        @error('password')
            <div class="text-danger small mt-1">{{ $message }}</div>
        @enderror
    </div>

    <div class="form-check mb-3">
        <input class="form-check-input" type="checkbox" name="remember" id="remember">
        <label class="form-check-label" for="remember">
            Remember Me
        </label>
    </div>

    <div class="d-grid mb-3">
        <button type="submit" class="btn btn-primary">Login</button>
    </div>

    <div class="text-center">
        <a href="{{ route('password.request') }}" class="text-decoration-none">Forgot Password?</a>
        <span class="mx-2">|</span>
        <a href="{{ route('register') }}" class="text-decoration-none">Register</a>
    </div>
</form>
@endsection
