<?php $__env->startSection('title', 'Create Account'); ?>

<?php $__env->startSection('content'); ?>

    <?php if (isset($component)) { $__componentOriginale19f62b34dfe0bfdf95075badcb45bc2 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.breadcrumb','data' => ['items' => [['label' => 'Create Account']]]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('breadcrumb'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['items' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute([['label' => 'Create Account']])]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2)): ?>
<?php $attributes = $__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2; ?>
<?php unset($__attributesOriginale19f62b34dfe0bfdf95075badcb45bc2); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale19f62b34dfe0bfdf95075badcb45bc2)): ?>
<?php $component = $__componentOriginale19f62b34dfe0bfdf95075badcb45bc2; ?>
<?php unset($__componentOriginale19f62b34dfe0bfdf95075badcb45bc2); ?>
<?php endif; ?>

    <section class="bg-cream-50 py-16 lg:py-24">
        <div class="container-shop">
            <div class="mx-auto max-w-md border border-cream-200 bg-white p-8 shadow-soft sm:p-10 rounded-2xl">
                <div class="text-center">
                    <?php if (isset($component)) { $__componentOriginalce262628e3a8d44dc38fd1f3965181bc = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.icon','data' => ['name' => 'leaf','class' => 'mx-auto h-7 w-7 text-moss-600']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'leaf','class' => 'mx-auto h-7 w-7 text-moss-600']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $attributes = $__attributesOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__attributesOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc)): ?>
<?php $component = $__componentOriginalce262628e3a8d44dc38fd1f3965181bc; ?>
<?php unset($__componentOriginalce262628e3a8d44dc38fd1f3965181bc); ?>
<?php endif; ?>
                    <h1 class="mt-3 font-serif text-3xl font-medium">Create Account</h1>
                    <p class="mt-2 text-sm text-ink-500">Join Divne for order tracking, member discounts, and faster checkout.</p>
                </div>

                <?php if($errors->any()): ?>
                    <div class="mt-4 bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded text-xs">
                        <?php echo e($errors->first()); ?>

                    </div>
                <?php endif; ?>

                <form class="mt-8 space-y-5" action="<?php echo e(route('register.post')); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div>
                        <label for="reg-name" class="field-label">Full Name <span class="text-terra-500">*</span></label>
                        <input id="reg-name" name="name" type="text" value="<?php echo e(old('name')); ?>" autocomplete="name" placeholder="Priyanka Sharma" class="field-input" required autofocus>
                    </div>
                    <div>
                        <label for="reg-email" class="field-label">Email Address <span class="text-terra-500">*</span></label>
                        <input id="reg-email" name="email" type="email" value="<?php echo e(old('email')); ?>" autocomplete="email" placeholder="you@example.com" class="field-input" required>
                    </div>
                    <div>
                        <label for="reg-phone" class="field-label">Phone Number (Optional)</label>
                        <input id="reg-phone" name="phone" type="tel" value="<?php echo e(old('phone')); ?>" autocomplete="tel" placeholder="+91 98765 43210" class="field-input">
                    </div>
                    <div>
                        <label for="reg-password" class="field-label">Password <span class="text-terra-500">*</span></label>
                        <input id="reg-password" name="password" type="password" autocomplete="new-password" placeholder="Minimum 8 characters" class="field-input" required>
                    </div>
                    <div>
                        <label for="reg-password-confirm" class="field-label">Confirm Password <span class="text-terra-500">*</span></label>
                        <input id="reg-password-confirm" name="password_confirmation" type="password" autocomplete="new-password" placeholder="Repeat password" class="field-input" required>
                    </div>
                    
                    <button type="submit" class="btn-primary w-full justify-center">Create Account</button>
                </form>

                <p class="mt-7 text-center text-sm text-ink-500">
                    Already have an account?
                    <a href="<?php echo e(route('login')); ?>" class="font-semibold text-moss-600 transition-colors hover:text-moss-800">Sign in</a>
                </p>
            </div>
        </div>
    </section>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/koushikkona/Documents/Projects/divne/resources/views/pages/register.blade.php ENDPATH**/ ?>