@extends('saas-admin.layout')

@section('title', 'Sign in')

@section('content')
    <div class="row justify-content-center">
        <div class="col-md-5">
            <div class="card shadow-sm">
                <div class="card-body p-4">
                    <h4 class="mb-3">{{ __('SaaS Administrator Sign In') }}</h4>
                    <p class="text-muted small">{{ __('This is the platform control panel — not a company account.') }}</p>

                    <form action="{{ route('saas-admin.authenticate') }}" method="POST">
                        @csrf
                        <div class="mb-3">
                            <label class="form-label">{{ __('Email') }}</label>
                            <input type="email" name="email" class="form-control" value="{{ old('email') }}" autofocus>
                            @error('email')
                                <p class="text-danger small mt-1">{{ $message }}</p>
                            @enderror
                        </div>
                        <div class="mb-3">
                            <label class="form-label">{{ __('Password') }}</label>
                            <input type="password" name="password" class="form-control">
                            @error('password')
                                <p class="text-danger small mt-1">{{ $message }}</p>
                            @enderror
                        </div>
                        <button type="submit" class="btn btn-primary w-100">{{ __('Sign in') }}</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
