<div>

    <div class="offcanvas offcanvas-end pb-sm-2 px-sm-2" id="authForm" tabindex="-1" aria-labelledby="authFormLabel"
        style="width: 500px">
        <div class="offcanvas-header flex-column align-items-start py-3 pt-lg-4">
            <div class="d-flex align-items-center justify-content-between w-100 mb-3 mb-lg-4">
                <h4 class="offcanvas-title" id="authFormLabel">Login to continue</h4>
                <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
            </div>
            <ul class="nav nav-underline" role="tablist">
                <li class="nav-item" role="presentation">
                    <button type="button" class="nav-link" id="login-tab" data-bs-toggle="tab"
                        data-bs-target="#login-tab-pane" role="tab" aria-controls="login-tab-pane"
                        aria-selected="false">
                        Login
                    </button>
                </li>
                <li class="nav-item" role="presentation">
                    <button type="button" class="nav-link active" id="register-tab" data-bs-toggle="tab"
                        data-bs-target="#register-tab-pane" role="tab" aria-controls="register-tab-pane"
                        aria-selected="true">
                        Register
                    </button>
                </li>
            </ul>
        </div>
        <div class="offcanvas-body tab-content pt-2">

            <!-- Login form -->
            <div class="tab-pane fade" id="login-tab-pane" role="tabpanel" aria-labelledby="login-tab">
                <form class="needs-validation" novalidate>
                    <div class="position-relative mb-4">
                        <label for="login-email" class="form-label">Email</label>
                        <input type="email" class="form-control form-control-lg" id="login-email" required>
                        <div class="invalid-tooltip bg-transparent py-0">Enter a valid email address!</div>
                    </div>
                    <div class="mb-4">
                        <label for="login-password" class="form-label">Password</label>
                        <div class="password-toggle">
                            <input type="password" class="form-control form-control-lg" id="login-password" required>
                            <div class="invalid-tooltip bg-transparent py-0">Password is incorrect!</div>
                            <label class="password-toggle-button fs-lg" aria-label="Show/hide password">
                                <input type="checkbox" class="btn-check">
                            </label>
                        </div>
                    </div>
                    <div class="d-flex align-items-center justify-content-between mb-4">
                        <div class="form-check me-2">
                            <input type="checkbox" class="form-check-input" id="remember-30">
                            <label for="remember-30" class="form-check-label">Remember for 30 days</label>
                        </div>
                        <div class="nav">
                            <a class="nav-link animate-underline p-0"
                                href="{{ route('second', ['account', 'password-recovery']) }}">
                                <span class="animate-target">Forgot password?</span>
                            </a>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-lg btn-primary w-100">
                        Login to your account
                        <i class="ci-chevron-right fs-lg ms-1 me-n1"></i>
                    </button>
                </form>
            </div>

            <!-- Register form -->
            <div class="tab-pane fade show active" id="register-tab-pane" role="tabpanel"
                aria-labelledby="register-tab">
                <form class="needs-validation" novalidate>
                    <div class="position-relative mb-4">
                        <label for="register-email" class="form-label">Email</label>
                        <input type="email" class="form-control form-control-lg" id="register-email" required>
                        <div class="invalid-tooltip bg-transparent py-0">Enter a valid email address!</div>
                    </div>
                    <div class="mb-4">
                        <label for="register-password" class="form-label">Password</label>
                        <div class="password-toggle">
                            <input type="password" class="form-control form-control-lg" id="register-password"
                                minlength="8" placeholder="Minimum 8 characters" required>
                            <div class="invalid-tooltip bg-transparent py-0">Password does not meet the required
                                criteria!
                            </div>
                            <label class="password-toggle-button fs-lg" aria-label="Show/hide password">
                                <input type="checkbox" class="btn-check">
                            </label>
                        </div>
                    </div>
                    <div class="d-flex flex-column gap-2 mb-4">
                        <div class="form-check">
                            <input type="checkbox" class="form-check-input" id="save-pass">
                            <label for="save-pass" class="form-check-label">Save the password</label>
                        </div>
                        <div class="form-check">
                            <input type="checkbox" class="form-check-input" id="privacy" required>
                            <label for="privacy" class="form-check-label">I have read and accept the <a
                                    class="text-dark-emphasis" href="#!">Privacy Policy</a></label>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-lg btn-primary w-100">
                        Create an account
                        <i class="ci-chevron-right fs-lg ms-1 me-n1"></i>
                    </button>
                    <div class="pt-5">
                        <h6>AsiaGolf account benefits</h6>
                        <ul class="list-unstyled d-flex flex-column gap-2 fs-sm mb-0">
                            <li class="d-flex align-items-center pb-1">
                                <div
                                    class="d-flex align-items-center justify-content-center bg-body-tertiary rounded-circle p-2">
                                    <i class="ci-mail fs-base text-dark-emphasis m-1"></i>
                                </div>
                                <div class="ps-2 ms-1">Subscribe to your favorite products</div>
                            </li>
                            <li class="d-flex align-items-center pb-1">
                                <div
                                    class="d-flex align-items-center justify-content-center bg-body-tertiary rounded-circle p-2">
                                    <i class="ci-settings fs-base text-dark-emphasis m-1"></i>
                                </div>
                                <div class="ps-2 ms-1">View and manage your orders and withlist</div>
                            </li>
                            <li class="d-flex align-items-center pb-1">
                                <div
                                    class="d-flex align-items-center justify-content-center bg-body-tertiary rounded-circle p-2">
                                    <i class="ci-gift fs-base text-dark-emphasis m-1"></i>
                                </div>
                                <div class="ps-2 ms-1">Earn rewards for future purchases</div>
                            </li>
                            <li class="d-flex align-items-center pb-1">
                                <div
                                    class="d-flex align-items-center justify-content-center bg-body-tertiary rounded-circle p-2">
                                    <i class="ci-percent fs-base text-dark-emphasis m-1"></i>
                                </div>
                                <div class="ps-2 ms-1">Receive exclusive offers and discounts</div>
                            </li>
                            <li class="d-flex align-items-center pb-1">
                                <div
                                    class="d-flex align-items-center justify-content-center bg-body-tertiary rounded-circle p-2">
                                    <i class="ci-heart fs-base text-dark-emphasis m-1"></i>
                                </div>
                                <div class="ps-2 ms-1">Create multiple wishlists</div>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
        </div>
    </div>

    @include('layouts.partials/offcanvas')

    @include('layouts.partials/navbar', ['wishlist' => true])
</div>
