/* ========================================
   STYLE AAA COMMUN - Pages d'authentification
   Login / Register / About
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* Variables de couleurs */
:root {
    --purple-primary: #a855f7;
    --purple-dark: #7c3aed;
    --purple-darker: #5b21b6;
    --orange-primary: #f97316;
    --orange-dark: #ea580c;
    --green-primary: #10b981;
    --green-dark: #059669;
}

/* Body global */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Vidéos en arrière-plan */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.video-background.active {
    opacity: 1;
}

/* Subtle dark vignette only - NO violet filter */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation AAA Ultra-Moderne */
.login-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(25px) saturate(1.5);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 5px;
    padding: 15px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-primary), var(--orange-primary));
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover i {
    transform: scale(1.15);
}

.nav-link.active {
    color: white;
}

.nav-link.active::before {
    width: 80%;
}

/* Structure principale */
.auth-stage {
    padding-top: 90px;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Container du logo */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-container img {
    max-width: 450px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(168, 85, 247, 0.5)) 
            drop-shadow(0 0 80px rgba(249, 115, 22, 0.3));
    animation: float-logo 6s ease-in-out infinite;
}

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

@keyframes float-logo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Panneau de connexion/inscription artisanal */
.auth-panel-modern {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Subtle top accent line */
.auth-panel-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(249, 115, 22, 0.3), transparent);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

/* Coins décoratifs */
.auth-panel-modern::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-top: 3px solid rgba(168, 85, 247, 0.4);
    border-left: 3px solid rgba(168, 85, 247, 0.4);
    border-radius: 3px 0 0 0;
}

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

.auth-panel-modern > * {
    position: relative;
    z-index: 1;
}

/* Titre du formulaire */
.auth-title {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

/* Décoration sous le titre - style artisanal */
.auth-title::before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        var(--purple-primary) 20%,
        var(--orange-primary) 50%,
        var(--green-primary) 80%,
        transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.auth-title::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--orange-primary);
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(249, 115, 22, 0.8),
        -30px 0 0 -2px var(--purple-primary),
        30px 0 0 -2px var(--green-primary);
}

.auth-title h1 {
    background: linear-gradient(135deg, var(--purple-primary), var(--orange-primary), var(--green-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.auth-title p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Footer AAA Ultra-Professionnel */
.login-footer-aaa {
    position: relative;
    margin-top: 80px;
    padding: 50px 40px 30px;
    background: rgba(5, 5, 8, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.login-footer-aaa::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), rgba(249, 115, 22, 0.2), transparent);
}

.footer-center {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.footer-links-row a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-links-row a:hover {
    color: white;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-icon.fb::before { background: linear-gradient(135deg, #1877F2, #0d5bbf); }
.social-icon.tw::before { background: linear-gradient(135deg, #1DA1F2, #0d8bd9); }
.social-icon.dc::before { background: linear-gradient(135deg, #5865F2, #4752c4); }
.social-icon.yt::before { background: linear-gradient(135deg, #FF0000, #cc0000); }

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-icon.fb:hover { box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4); }
.social-icon.tw:hover { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4); }
.social-icon.dc:hover { box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4); }
.social-icon.yt:hover { box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4); }

.social-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.15);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 3px;
        padding: 12px 0;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 10px 12px;
    }
    
    .logo-container img {
        max-width: 320px;
    }
    
    .auth-panel-modern {
        padding: 30px 25px;
    }
    
    .auth-title h1 {
        font-size: 26px;
    }
    
    .footer-links-row {
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Transition fluide entre les pages */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
}
