@extends('layouts.app')

@section('title', 'Login')

@section('content')
    <div class="portal-login-wrap">
        <div class="portal-login-card card">
            <div class="card-header">
                <h5>CRM</h5>
                <p class="small mb-0 opacity-75">Sign in to continue</p>
            </div>
            <div class="card-body p-4">
                <form method="POST" action="{{ route('login.submit') }}" class="row g-3">
                    @csrf
                    <div class="col-12">
                        <label class="form-label fw-semibold small">Email</label>
                        <input type="email" name="email" class="form-control" value="{{ old('email') }}" required autofocus>
                    </div>
                    <div class="col-12">
                        <label class="form-label fw-semibold small">Password</label>
                        <input type="password" name="password" class="form-control" required>
                    </div>
                    <div class="col-12 form-check ms-1">
                        <input type="checkbox" class="form-check-input" name="remember" id="remember">
                        <label class="form-check-label small" for="remember">Remember me</label>
                    </div>
                    <div class="col-12 d-grid">
                        <button class="btn btn-portal-primary py-2" type="submit">Sign in</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
@endsection
