@extends('layouts.portal')
@section('title', 'Müşteri Portalı Giriş')
@section('content')
<div class="row justify-content-center align-items-center" style="min-height:calc(100vh - 140px);">
    <div class="col-md-6 col-xl-4">
        <div class="card soft-panel">
            <div class="card-body p-4 p-md-5">
                <div class="text-center mb-4">
                    <div class="mx-auto mb-3 d-flex align-items-center justify-content-center" style="width:64px;height:64px;border-radius:20px;background:#2f4cdd;color:#fff;font-weight:800;font-size:22px;">DW</div>
                    <h3 class="mb-1">Müşteri Portalı</h3>
                    <p class="portal-muted mb-0">Raporlarınızı ve performans özetlerinizi görüntüleyin.</p>
                </div>

                @if($errors->any())
                    <div class="alert alert-danger">{{ $errors->first() }}</div>
                @endif

                <form method="POST" action="{{ route('portal.login.submit') }}">
                    @csrf
                    <div class="mb-3">
                        <label class="form-label">E-posta</label>
                        <input type="email" name="email" value="{{ old('email') }}" class="form-control" required autofocus>
                    </div>
                    <div class="mb-3">
                        <label class="form-label">Şifre</label>
                        <input type="password" name="password" class="form-control" required>
                    </div>
                    <div class="d-flex justify-content-between align-items-center mb-4">
                        <label class="mb-0 small"><input type="checkbox" name="remember" value="1"> Beni hatırla</label>
                    </div>
                    <button class="btn btn-primary w-100" type="submit">Giriş Yap</button>
                </form>
            </div>
        </div>
    </div>
</div>
@endsection
