<!doctype html>
<html lang="fr">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Rejoignez-nous - ATARA | Chaque bijou vendu, votre empire construit</title>
    <link rel="icon" type="image/svg+xml" href="{{ asset('favicon.svg') }}">
    <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
    
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #8B5CF6;
            --secondary-color: #D946EF;
            --accent-color: #F59E0B;
            --dark-color: #14233c;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            overflow-x: hidden;
        }

        body {
            font-family: 'Poppins', sans-serif;
            font-size: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            line-height: 1.2;
        }

        .header-section {
            background: linear-gradient(135deg, var(--dark-color), #1e3a5f);
            padding: 1rem 0;
            width: 100%;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        .site-logo {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 800;
            color: #fff;
            text-decoration: none;
            white-space: nowrap;
        }

        .site-logo i {
            color: var(--accent-color);
        }

        .navbar {
            flex-wrap: wrap;
            padding: 0 !important;
        }

        .nav-shell {
            background: linear-gradient(135deg, rgba(10, 16, 35, 0.95), rgba(16, 24, 46, 0.95));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px;
            padding: 12px 16px;
            box-shadow: 0 18px 50px rgba(0,0,0,0.35);
            backdrop-filter: blur(10px);
            gap: 16px;
        }

        .navbar-nav {
            gap: 8px;
        }

        .navbar-nav a {
            color: #e5e7eb !important;
            padding: 10px 14px !important;
            border-radius: 10px;
            transition: all 0.25s ease;
            font-size: clamp(0.82rem, 1.8vw, 0.98rem);
            white-space: nowrap;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            font-weight: 700;
            background: transparent;
        }

        .navbar-nav a:hover {
            background: rgba(139, 92, 246, 0.28);
            color: #fff !important;
        }

        .navbar-nav a.active {
            background: rgba(255,255,255,0.14);
            color: #fff !important;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
        }

        .navbar-toggler {
            border-color: rgba(255,255,255,0.3);
            margin-left: auto;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        .btn--base {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            padding: clamp(10px, 2vw, 12px) clamp(20px, 5vw, 35px);
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            border: none;
            transition: all 0.3s;
            font-size: 0.95rem;
            white-space: nowrap;
            display: inline-block;
        }

        .btn--base:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
            color: #fff;
        }

        .action-card {
            display: flex;
            align-items: stretch;
            gap: 12px;
            flex-wrap: wrap;
            background: linear-gradient(135deg, rgba(12, 18, 38, 0.95), rgba(17, 25, 46, 0.95));
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            padding: 10px 12px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.35);
        }

        .action-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 8px 10px;
            border-right: 1px solid rgba(255,255,255,0.1);
        }

        .action-section:last-child {
            border-right: none;
        }

        .action-section.cart-section {
            justify-content: center;
        }

        .action-header {
            font-size: 0.7rem;
            font-weight: 900;
            letter-spacing: 0.8px;
            color: #cbd5f5;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .btn-action {
            border-radius: 10px;
            padding: 8px 12px;
            font-weight: 700;
            border: 2px solid rgba(255,255,255,0.18);
            background: rgba(255,255,255,0.08);
            color: #fff;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            transition: all 0.25s ease;
            white-space: nowrap;
        }

        .btn-action:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            border-color: transparent;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
            color: #fff;
        }

        .btn-cart {
            border-radius: 10px;
            padding: 8px 12px;
            font-weight: 700;
            border: none;
            background: linear-gradient(135deg, #0ea5e9, #2563eb);
            color: #fff;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
            transition: all 0.25s ease;
        }

        .btn-cart:hover {
            transform: translateY(-1px);
            box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
            color: #fff;
        }

        .cart-badge {
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            border-radius: 999px;
            padding: 2px 7px;
            font-size: 0.75rem;
        }
            color: #fff;
        }

        .cart-count-badge {
            background: #ef4444;
            color: #fff;
            font-weight: 800;
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 0.8rem;
        }

        @media (max-width: 992px) {
            .nav-shell {
                padding: 14px;
            }

            .action-card {
                width: 100%;
            }
        }

        .auth-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(20px, 5vw, 40px);
        }

        .auth-card {
            background: #fff;
            border-radius: 25px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
            width: 100%;
            max-width: 600px;
            animation: slideUp 0.5s ease-out;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .auth-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            padding: clamp(25px, 5vw, 40px);
            text-align: center;
        }

        .auth-title {
            font-size: clamp(1.5rem, 5vw, 2rem);
            font-weight: 800;
            margin-bottom: 10px;
        }

        .auth-subtitle {
            font-size: clamp(0.9rem, 2vw, 1rem);
            opacity: 0.95;
        }

        .auth-body {
            padding: clamp(25px, 5vw, 40px);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: clamp(15px, 3vw, 20px);
        }

        .form-row.full {
            grid-template-columns: 1fr;
        }

        .form-group {
            margin-bottom: clamp(15px, 3vw, 20px);
        }

        .form-label {
            display: block;
            font-size: clamp(0.9rem, 2vw, 1rem);
            color: #333;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .form-control {
            width: 100%;
            padding: clamp(10px, 2vw, 13px) clamp(12px, 3vw, 16px);
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: clamp(0.9rem, 2vw, 1rem);
            transition: all 0.3s;
            font-family: 'Poppins', sans-serif;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
        }

        .form-control::placeholder {
            color: #999;
        }

        .password-toggle {
            position: relative;
        }

        .password-toggle-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .password-toggle-btn:hover {
            color: var(--secondary-color);
        }

        .checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }

        .checkbox-label {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
            color: #333;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
            line-height: 1.4;
        }

        .checkbox-label input {
            margin-top: 3px;
            cursor: pointer;
            accent-color: var(--primary-color);
        }

        .submit-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: #fff;
            border: none;
            padding: clamp(12px, 2vw, 15px);
            border-radius: 50px;
            font-weight: 700;
            font-size: clamp(0.95rem, 2vw, 1.05rem);
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
        }

        .divider {
            text-align: center;
            margin: 20px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: #e5e7eb;
        }

        .divider span {
            position: relative;
            background: #fff;
            padding: 0 12px;
            color: #999;
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            font-weight: 600;
        }

        .social-login {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        .social-btn {
            padding: clamp(10px, 2vw, 12px);
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            background: #fff;
            color: #333;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: clamp(0.8rem, 2vw, 0.9rem);
        }

        .social-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .auth-footer {
            text-align: center;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #e5e7eb;
        }

        .auth-footer p {
            font-size: clamp(0.85rem, 2vw, 0.95rem);
            color: #666;
            margin: 0;
        }

        .auth-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }

        .auth-footer a:hover {
            color: var(--secondary-color);
        }

        .footer-section {
            background: rgba(0,0,0,0.2);
            color: #fff;
            padding: clamp(20px, 3vw, 30px) 1rem;
            width: 100%;
            text-align: center;
        }

        .footer-section a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: color 0.3s;
            margin: 0 10px;
        }

        .footer-section a:hover {
            color: var(--accent-color);
        }

        @media (max-width: 768px) {
            .auth-card {
                max-width: 95%;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .social-login {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>

<body>
    <header class="header-section">
        <div class="container">
            <nav class="navbar navbar-expand-lg nav-shell align-items-center">
                <a class="site-logo" href="{{ route('home') }}">
                    <i class="fas fa-gem"></i> <span class="d-none d-sm-inline">ATARA</span><span class="d-sm-none">B.E</span>
                </a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarNav">
                    <ul class="navbar-nav ms-auto me-auto align-items-lg-center">
                        <li class="nav-item"><a href="{{ route('home') }}" class="nav-link">Accueil</a></li>
                        <li class="nav-item"><a href="{{ route('about') }}" class="nav-link">À Propos</a></li>
                        <li class="nav-item"><a href="{{ route('shop.index') }}" class="nav-link">Boutique</a></li>
                        <li class="nav-item"><a href="{{ route('plan') }}" class="nav-link">Plan d’investissement</a></li>
                        <li class="nav-item"><a href="{{ route('public.blog') }}" class="nav-link">Blog</a></li>
                        <li class="nav-item"><a href="{{ route('public.newsletter') }}" class="nav-link">Newsletter</a></li>
                        <li class="nav-item"><a href="{{ route('contact') }}" class="nav-link">Contact</a></li>
                    </ul>
                    <div class="action-card ms-lg-3">
                        <div class="action-section">
                            <div class="action-header">ESPACE MEMBRE</div>
                            <div class="action-buttons">
                                <a href="{{ route('member.login') }}" class="btn-action">
                                    <i class="fas fa-sign-in-alt"></i> LOGIN
                                </a>
                                <a href="{{ route('member.register') }}" class="btn-action">
                                    <i class="fas fa-user-plus"></i> REGISTER
                                </a>
                            </div>
                        </div>
                        <div class="action-section">
                            <div class="action-header">ESPACE VENDEUR</div>
                            <div class="action-buttons">
                                <a href="{{ route('seller.login') }}" class="btn-action">
                                    <i class="fas fa-store"></i> LOGIN
                                </a>
                                <a href="{{ route('seller.register') }}" class="btn-action">
                                    <i class="fas fa-user-plus"></i> REGISTER
                                </a>
                            </div>
                        </div>
                        <div class="action-section cart-section">
                            <a href="{{ route('cart.index') }}" class="btn-cart">
                                <i class="fas fa-shopping-cart"></i> Panier
                                <span class="cart-badge">3</span>
                            </a>
                        </div>
                    </div>
                </div>
            </nav>
        </div>
    </header>

    <div class="auth-container">
        <div class="auth-card">
            <div class="auth-header">
                <h2 class="auth-title"><i class="fas fa-user-plus me-2"></i>Créer un Compte</h2>
                <p class="auth-subtitle">Rejoignez notre communauté d'entrepreneurs</p>
            </div>

            <div class="auth-body">
                <form method="POST" action="{{ route('member.register.process') }}">
                    @csrf

                    <div class="form-row">
                        <div class="form-group">
                            <label class="form-label" for="firstname">Prénom *</label>
                            <input type="text" class="form-control" id="firstname" name="firstname" placeholder="Jean" required>
                        </div>
                        <div class="form-group">
                            <label class="form-label" for="lastname">Nom *</label>
                            <input type="text" class="form-control" id="lastname" name="lastname" placeholder="Dupont" required>
                        </div>
                    </div>

                    <div class="form-row full">
                        <div class="form-group">
                            <label class="form-label" for="email">Adresse Email *</label>
                            <input type="email" class="form-control" id="email" name="email" placeholder="votre.email@exemple.com" required>
                        </div>
                    </div>

                    <div class="form-row">
                        <div class="form-group">
                            <label class="form-label" for="phone">Téléphone *</label>
                            <input type="tel" class="form-control" id="phone" name="phone" placeholder="+226 60 00 00 00" required>
                        </div>
                        <div class="form-group">
                            <label class="form-label" for="country">Pays *</label>
                            <input type="text" class="form-control" id="country" name="country" placeholder="Burkina Faso" required>
                        </div>
                    </div>

                    <div class="form-row full">
                        <div class="form-group">
                            <label class="form-label" for="referrer">Code Parrain</label>
                            <input type="text" class="form-control" id="referrer" name="referrer_code" placeholder="Optionnel - Entrez le code de qui vous recommande">
                        </div>
                    </div>

                    <div class="form-row">
                        <div class="form-group">
                            <label class="form-label" for="password">Mot de Passe *</label>
                            <div class="password-toggle">
                                <input type="password" class="form-control" id="password" name="password" placeholder="Au moins 8 caractères" required>
                                <button type="button" class="password-toggle-btn" onclick="togglePassword('password')">
                                    <i class="fas fa-eye"></i>
                                </button>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="form-label" for="confirm_password">Confirmer le Mot de Passe *</label>
                            <div class="password-toggle">
                                <input type="password" class="form-control" id="confirm_password" name="password_confirmation" placeholder="Confirmez votre mot de passe" required>
                                <button type="button" class="password-toggle-btn" onclick="togglePassword('confirm_password')">
                                    <i class="fas fa-eye"></i>
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="checkbox-group">
                        <label class="checkbox-label">
                            <input type="checkbox" required>
                            <span>J'accepte les <a href="#" style="color: var(--primary-color); text-decoration: underline;">conditions d'utilisation</a> et la <a href="#" style="color: var(--primary-color); text-decoration: underline;">politique de confidentialité</a></span>
                        </label>
                        <label class="checkbox-label">
                            <input type="checkbox">
                            <span>Je souhaite recevoir des informations sur les offres et actualités</span>
                        </label>
                    </div>

                    <button type="submit" class="submit-btn">
                        <i class="fas fa-rocket me-2"></i>Créer mon Compte
                    </button>
                </form>

                <div class="divider">
                    <span>ou</span>
                </div>

                <div class="social-login">
                    <button class="social-btn">
                        <i class="fab fa-google"></i>
                        <span class="d-none d-sm-inline">Google</span>
                    </button>
                    <button class="social-btn">
                        <i class="fab fa-facebook"></i>
                        <span class="d-none d-sm-inline">Facebook</span>
                    </button>
                </div>

                <div class="auth-footer">
                    <p>Vous avez déjà un compte ? <a href="{{ route('member.login') }}">Se connecter</a></p>
                </div>
            </div>
        </div>
    </div>

    <footer class="footer-section">
        <div>
            <a href="{{ route('home') }}">Accueil</a>
            <a href="{{ route('about') }}">À Propos</a>
            <a href="{{ route('plan') }}">Plan d’investissement</a>
            <a href="{{ route('contact') }}">Contact</a>
            <p style="margin-top: 10px; font-size: 0.85rem;">© 2025 ATARA. Tous droits réservés.</p>
        </div>
    </footer>

    <script>
        function togglePassword(fieldId) {
            const field = document.getElementById(fieldId);
            const btn = event.target.closest('button');
            const icon = btn.querySelector('i');
            
            if (field.type === 'password') {
                field.type = 'text';
                icon.classList.remove('fa-eye');
                icon.classList.add('fa-eye-slash');
            } else {
                field.type = 'password';
                icon.classList.remove('fa-eye-slash');
                icon.classList.add('fa-eye');
            }
        }
    </script>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
