/* ============================================
   E-commerce Signup Form Styles - Thème Jaune
   Version: 1.7 - Ajout des icônes d'en-tête auth
   ============================================ */

/* ============================================
   Hiérarchie Z-INDEX (du plus bas au plus haut)
   - Footer: 1
   - Main content wrapper: 1
   - Cart table area: 10
   - Modern signup form: 10
   - Input groups: 10
   - Thème mina éléments: 5000 (core-style.css ligne 332)
   - Country dropdown container: 10000 (au-dessus du thème mina)
   - Country dropdown menu: 20000 (le plus élevé)
   ============================================ */

/* Styles modernes pour le formulaire d'inscription - Thème jaune */
.cart-table-area {
    min-height: calc(100vh - 200px);
    padding: 0 !important;
    overflow: visible !important;
    position: relative;
    z-index: 10 !important;
}

.modern-signup-form {
    background: #ffffff;
    border-radius: 0;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    position: relative;
    z-index: 10 !important;
}

.modern-signup-form .cart-title h2 {
    color: #333;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
}

.modern-signup-form .cart-title p {
    font-size: 0.95rem;
    color: #6c757d;
}

.form-label-modern {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label-modern i,
.form-label-modern .fa {
    margin-right: 8px;
    color: var(--mina-accent, #ffc107);
    font-size: 1.1rem;
}

.input-group-modern {
    position: relative;
    z-index: 10 !important;
    overflow: visible !important;
}

.form-control-modern {
    border: 2px solid #e9ecef;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
}

.form-control-modern:focus {
    border-color: var(--mina-accent, #ffc107);
    box-shadow: 0 0 0 4px rgba(var(--mina-accent-rgb, 255, 193, 7), 0.1);
    outline: none;
}

.form-control-modern::placeholder {
    color: #adb5bd;
}

/* ============================================
   SELECT PAYS (Bootstrap classique)
   ============================================ */
.form-select.form-control-modern {
    border: 2px solid #e9ecef;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 0.95rem;
    background-color: #fff;
    width: 100%;
    appearance: auto;
}

.form-select.form-control-modern:focus {
    border-color: var(--mina-accent, #ffc107);
    box-shadow: 0 0 0 4px rgba(var(--mina-accent-rgb, 255, 193, 7), 0.1);
    outline: none;
}

/* S'assurer que tous les conteneurs permettent l'overflow */
.checkout_details_area {
    position: relative;
    z-index: 10 !important;
    overflow: visible !important;
    isolation: isolate;
}

/* Créer un nouveau contexte d'empilement pour le formulaire */
.modern-signup-form {
    isolation: isolate;
    position: relative;
    z-index: 10 !important;
}

/* S'assurer que les conteneurs restent propres */
.input-group-modern {
    position: relative;
    z-index: 10 !important;
}

.container-fluid {
    overflow: visible !important;
}

.row {
    overflow: visible !important;
}

/* ============================================
   FOOTER - Z-index bas pour rester en dessous
   Forcer le footer à rester en dessous avec isolation
   ============================================ */
.main-content-wrapper {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    isolation: isolate;
}

.footer_area,
footer.footer_area,
.footer_area.clearfix {
    position: relative !important;
    z-index: 1 !important;
    isolation: isolate;
}

/* Surcharge des styles du thème mina pour le footer */
body .footer_area,
body footer.footer_area,
body .main-content-wrapper .footer_area {
    z-index: 1 !important;
    position: relative !important;
    isolation: isolate;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn-modern-signup {
    background: linear-gradient(135deg, var(--mina-accent, #ffc107) 0%, var(--mina-accent, #ff9800) 100%);
    border: none;
    border-radius: 0;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--mina-accent-rgb, 255, 193, 7), 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-modern-signup:hover {
    transform: none !important;
    box-shadow: 0 6px 20px rgba(var(--mina-accent-rgb, 255, 193, 7), 0.5);
    color: #333;
    background: linear-gradient(135deg, var(--mina-accent, #ff9800) 0%, var(--mina-accent, #ffc107) 100%);
}

.btn-modern-signup:active {
    transform: none !important;
}

.btn-link-modern {
    color: var(--mina-accent, #ffc107);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 0;
    display: inline-block;
}

.btn-link-modern:hover {
    background: rgba(var(--mina-accent-rgb, 255, 193, 7), 0.1);
    color: var(--mina-accent, #ff9800);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .modern-signup-form {
        padding: 30px 20px;
        border-radius: 0;
    }
    
    .modern-signup-form .cart-title h2 {
        font-size: 1.5rem;
    }
    
    .form-select.form-control-modern {
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATION
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-signup-form {
    animation: fadeInUp 0.5s ease;
}

/* ============================================
   SURCHARGES SPÉCIFIQUES POUR CONFLITS AVEC MINA
   Utilisation de sélecteurs plus spécifiques
   ============================================ */

/* S'assurer que le footer reste toujours en dessous */
body .main-content-wrapper .footer_area,
body .main-content-wrapper footer.footer_area,
body footer.footer_area {
    z-index: 1 !important;
    position: relative !important;
}

/* Surcharge pour les éléments du thème mina qui pourraient interférer */
.main-content-wrapper .header-area,
.main-content-wrapper .amado-nav,
.main-content-wrapper .mobile-nav {
    z-index: 100 !important;
}

/* Faire occuper tout l'espace */
.row.justify-content-center {
    margin: 0;
}

.row.justify-content-center > div {
    padding: 0;
    max-width: 100%;
}

.container-fluid {
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   Auth Icon Header Styles
   ============================================ */

.auth-icon-header {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--mina-accent, #ffc107) 0%, var(--mina-accent, #ff9800) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(var(--mina-accent-rgb, 255, 193, 7), 0.35);
}

.auth-icon-header.auth-icon-warning {
    background: linear-gradient(135deg, var(--mina-accent, #ffc107) 0%, rgba(var(--mina-accent-rgb, 255, 193, 7), 0.85) 50%, var(--mina-accent, #ff9800) 100%);
    box-shadow: 0 8px 25px rgba(var(--mina-accent-rgb, 255, 193, 7), 0.35);
}

.auth-icon-header.auth-icon-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.35);
}

.auth-icon-header.auth-icon-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.35);
}

/* Text alignment utilities */
.text-end {
    text-align: right !important;
}

/* Small link style */
.btn-link-modern.small {
    font-size: 0.85rem;
    padding: 0;
}

@media (max-width: 768px) {
    .auth-icon-header {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
