@extends('layouts.app')

@section('title', 'Login')

@section('content')
<div class="container">
    <div class="auth-card">
        <h1 class="font-serif text-center mb-4" style="font-size:1.6rem;">Welcome Back</h1>

        <form action="{{ route('login') }}" method="POST">
            @csrf
            <div class="mb-3">
                <label class="form-label small">Email Address</label>
                <input type="email" name="email" class="form-control @error('email') is-invalid @enderror" value="{{ old('email') }}" required autofocus>
                @error('email')<div class="invalid-feedback">{{ $message }}</div>@enderror
            </div>
            <div class="mb-3">
                <label class="form-label small">Password</label>
                <input type="password" name="password" class="form-control" required>
            </div>
            <div class="form-check mb-3">
                <input class="form-check-input" type="checkbox" name="remember" id="remember">
                <label class="form-check-label small" for="remember">Remember me</label>
            </div>
            <button type="submit" class="btn btn-terracotta w-100">Login</button>
        </form>

        <p class="text-center small text-muted-soft mt-4 mb-0">
            Don't have an account? <a href="{{ route('register') }}">Create one</a>
        </p>
    </div>
</div>
@endsection
