@extends('layouts.base')
@section('title', __('Log in').' — MediBook AI')

@section('body')
<div class="auth-wrap">
    <div class="mb-card auth-card">
        <h1 class="h4 fw-bold">{{ __('Log in') }}</h1>
        @if(session('status'))<div class="alert alert-success small">{{ session('status') }}</div>@endif
        <form method="POST" action="{{ route('login') }}">
            @csrf
            <div class="mb-3">
                <label class="form-label">{{ __('Email') }}</label>
                <input type="email" name="email" value="{{ old('email') }}" class="form-control @error('email') is-invalid @enderror" 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="d-flex justify-content-between align-items-center mb-3">
                <div class="form-check">
                    <input class="form-check-input" type="checkbox" name="remember" id="remember">
                    <label class="form-check-label small" for="remember">{{ __('Remember me') }}</label>
                </div>
                <a class="small" href="{{ route('password.request') }}">{{ __('Forgot your password?') }}</a>
            </div>
            <button class="btn mb-btn-primary w-100">{{ __('Log in') }}</button>
        </form>
    </div>
</div>
@endsection
