@extends('layouts.app', ['title' => 'Register | Print Cards'])

@section('content')
    <div class="row justify-content-center">
        <div class="col-lg-6">
            <div class="card card-soft">
                <div class="card-body p-4">
                    <h2 class="fw-bold mb-3">Create Account</h2>
                    <p class="text-muted">Register with email and mobile, then verify the OTP to activate customer access.</p>
                    <form method="POST" action="{{ route('register.store') }}" class="row g-3">
                        @csrf
                        <div class="col-md-6">
                            <label class="form-label">Full Name</label>
                            <input type="text" name="name" value="{{ old('name') }}" class="form-control" required>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Mobile</label>
                            <input type="text" name="mobile" value="{{ old('mobile') }}" class="form-control" required>
                        </div>
                        <div class="col-12">
                            <label class="form-label">Email</label>
                            <input type="email" name="email" value="{{ old('email') }}" class="form-control" required>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Password</label>
                            <input type="password" name="password" class="form-control" required>
                        </div>
                        <div class="col-md-6">
                            <label class="form-label">Confirm Password</label>
                            <input type="password" name="password_confirmation" class="form-control" required>
                        </div>
                        <div class="col-12 form-check">
                            <input class="form-check-input" type="checkbox" name="agree_terms" value="1" id="agree_terms">
                            <label class="form-check-label" for="agree_terms">I understand this platform only prints user-uploaded documents.</label>
                        </div>
                        <div class="col-12 d-grid">
                            <button class="btn btn-primary" type="submit">Create Account and Send OTP</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
