@extends('layouts.auth')
@section('title', 'Sign In')
@section('content')
<h2 class="text-center mb-4" style="font-size: 1.5rem;">Welcome back</h2>
<form method="POST" action="{{ route('login') }}">
    @csrf
    <div class="mb-3">
        <label class="form-label">Email or Username</label>
        <input type="text" 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">Password</label>
        <input type="password" name="password" class="form-control" required>
    </div>
    <div class="form-check mb-3">
        <input type="checkbox" name="remember" id="remember" class="form-check-input">
        <label for="remember" class="form-check-label">Remember me</label>
    </div>
    @include("partials.recaptcha", ["form"=>"login"])
    <button type="submit" class="btn btn-primary w-100">Sign In</button>
</form>
<div class="text-center mt-3">
    <a href="{{ route('password.request') }}" class="small">Forgot password?</a>
    &middot;
    <a href="{{ route('register') }}" class="small">Create account</a>
</div>
@endsection
