@extends('layouts.app')

@section('title', 'Join The Mini Port')

@section('content')
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-8 text-center">
            <h1 class="fw-bold mb-4">Join The Mini Port</h1>
            <p class="lead text-muted mb-5">Choose how you want to participate in our marketplace.</p>
        </div>
    </div>

    <div class="row justify-content-center g-4">
        <!-- Buyer Card -->
        <div class="col-md-5 col-lg-4">
            <div class="card h-100 border-0 shadow-sm hover-shadow transition-all">
                <div class="card-body p-5 text-center">
                    <div class="mb-4 text-primary">
                        <i class="bi bi-cart-check display-4"></i>
                    </div>
                    <h3 class="fw-bold mb-3">Join as Buyer</h3>
                    <p class="text-muted mb-4">Post RFQs, browse products, and connect with verified suppliers.</p>
                    <a href="{{ route('register.buyer') }}" class="btn btn-primary w-100 py-2">Register as Buyer</a>
                </div>
            </div>
        </div>

        <!-- Seller Card -->
        <div class="col-md-5 col-lg-4">
            <div class="card h-100 border-0 shadow-sm hover-shadow transition-all">
                <div class="card-body p-5 text-center">
                    <div class="mb-4 text-success">
                        <i class="bi bi-shop display-4"></i>
                    </div>
                    <h3 class="fw-bold mb-3">Join as Seller</h3>
                    <p class="text-muted mb-4">Create your microsite, list products, and receive business inquiries.</p>
                    <a href="{{ route('register.seller') }}" class="btn btn-success w-100 py-2">Register as Seller</a>
                </div>
            </div>
        </div>
    </div>

    <div class="row justify-content-center mt-5">
        <div class="col-md-8 text-center">
            <p class="text-muted">Already have an account? <a href="{{ route('login') }}" class="text-decoration-none fw-bold">Login here</a></p>
        </div>
    </div>
</div>

<style>
    .hover-shadow:hover { transform: translateY(-5px); box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important; }
    .transition-all { transition: all 0.3s ease; }
</style>
@endsection
