/* Chemin du fichier: /public/css/auth-layout.css */

:root {
    --auth-bg: var(--support_user_bg);
    --auth-text: var(--support_user_text);
    --auth-accent: var(--support_user_accent);
    --auth-border: var(--support_user_border);
    --auth-danger: var(--support_user_danger);
    --auth-success: var(--support_user_success);
    --auth-warning: var(--support_user_warning);
    --auth-info: var(--support_user_info);
    --auth-card-bg: var(--support_user_card_bg);
    --auth-card-hover: var(--support_user_card_hover);
    --auth-input-bg: var(--support_user_input_bg);
    --auth-input-border: var(--support_user_input_border);
    --auth-shadow: var(--support_user_shadow);
    --auth-transition: var(--support_user_transition);
    
    /* Couleurs spécifiques au layout auth */
    --auth-gradient: linear-gradient(135deg, var(--auth-accent), #8550b0);
    --auth-visual-bg: linear-gradient(135deg, #9c62c6 0%, #7038a8 100%);
    --auth-light-accent: rgba(156, 98, 198, 0.1);
    --auth-pattern-color: rgba(255, 255, 255, 0.1);
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container principal */
.auth-page {
    display: flex;
    min-height: 100vh;
    position: relative;
    opacity: 0;
    animation: auth-page-fade-in 1s ease-out forwards;
}

@keyframes auth-page-fade-in {
    to {
        opacity: 1;
    }
}

/* Section gauche - Contenu */
.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--auth-bg) 0%, rgba(248, 249, 250, 0.8) 100%);
    position: relative;
    z-index: 2;
}

.auth-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(156, 98, 198, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(156, 98, 198, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.auth-content-inner {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

/* Header avec logo */
.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--auth-shadow);
    transition: var(--auth-transition);
    border: 1px solid rgba(156, 98, 198, 0.1);
    transform: translateY(20px);
    animation: auth-header-slide-up 0.8s ease-out 0.2s forwards;
}

@keyframes auth-header-slide-up {
    to {
        transform: translateY(0);
    }
}

.auth-logo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 98, 198, 0.15);
    border-color: rgba(156, 98, 198, 0.2);
}

.auth-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--auth-gradient);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.auth-logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: var(--auth-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Contenu principal */
.auth-main {
    opacity: 0;
    transform: translateY(30px);
    animation: auth-main-slide-up 0.8s ease-out 0.4s forwards;
}

@keyframes auth-main-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer avec stats */
.auth-footer {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: auth-footer-slide-up 0.8s ease-out 0.6s forwards;
}

@keyframes auth-footer-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-social-proof {
    background: var(--auth-card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border);
}

.auth-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

.auth-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.auth-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--auth-accent);
    line-height: 1;
}

.auth-stat-label {
    font-size: 0.8rem;
    color: var(--auth-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Section droite - Illustration */
.auth-visual {
    flex: 1;
    background: var(--auth-visual-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    color: white;
}

.auth-visual-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Motif de fond animé */
.auth-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.auth-pattern-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--auth-pattern-color);
    border-radius: 50%;
    animation: auth-dot-pulse 3s ease-in-out infinite;
}

.auth-pattern-dot:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes auth-dot-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.auth-pattern-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--auth-pattern-color), transparent);
    opacity: 0.3;
}

.auth-line-1 {
    top: 20%;
    left: 10%;
    width: 120px;
    transform: rotate(25deg);
    animation: auth-line-fade 4s ease-in-out infinite;
}

.auth-line-2 {
    top: 40%;
    right: 15%;
    width: 80px;
    transform: rotate(-15deg);
    animation: auth-line-fade 4s ease-in-out infinite 1s;
}

.auth-line-3 {
    top: 65%;
    left: 20%;
    width: 100px;
    transform: rotate(45deg);
    animation: auth-line-fade 4s ease-in-out infinite 2s;
}

.auth-line-4 {
    top: 80%;
    right: 25%;
    width: 60px;
    transform: rotate(-30deg);
    animation: auth-line-fade 4s ease-in-out infinite 3s;
}

@keyframes auth-line-fade {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Contenu de la section visuelle */
.auth-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* Section citation */
.auth-quote-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: auth-quote-slide-up 1s ease-out 0.8s forwards;
}

@keyframes auth-quote-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-quote-icon {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.auth-quote-text {
    font-size: 1.75rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: white;
}

.auth-quote-author {
    font-size: 1rem;
    opacity: 0.8;
    font-style: normal;
}

/* Exemples d'échos */
.auth-examples {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: auth-examples-slide-up 1s ease-out 1s forwards;
}

@keyframes auth-examples-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-examples-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-echo-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-echo-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--auth-transition);
    transform: translateX(20px);
    opacity: 0;
}

.auth-echo-1 {
    animation: auth-echo-slide-in 0.6s ease-out 1.2s forwards;
}

.auth-echo-2 {
    animation: auth-echo-slide-in 0.6s ease-out 1.4s forwards;
}

.auth-echo-3 {
    animation: auth-echo-slide-in 0.6s ease-out 1.6s forwards;
}

@keyframes auth-echo-slide-in {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.auth-echo-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.auth-echo-item p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: white;
    font-style: italic;
}

.auth-echo-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-echo-stats span strong {
    color: white;
    font-weight: 600;
}

/* Globe animé */
.auth-globe {
    opacity: 0;
    transform: scale(0.8);
    animation: auth-globe-appear 1s ease-out 1.8s forwards;
    margin-top: 2rem;
}

@keyframes auth-globe-appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-globe-inner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.auth-globe-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.auth-pulse-1 {
    width: 60px;
    height: 60px;
    animation: auth-pulse 2s ease-in-out infinite;
}

.auth-pulse-2 {
    width: 80px;
    height: 80px;
    animation: auth-pulse 2s ease-in-out infinite 0.7s;
}

.auth-pulse-3 {
    width: 100px;
    height: 100px;
    animation: auth-pulse 2s ease-in-out infinite 1.4s;
}

@keyframes auth-pulse {
    0%, 100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.auth-globe-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Bouton de basculement mobile */
.auth-toggle-mobile {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--auth-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(156, 98, 198, 0.3);
    transition: var(--auth-transition);
    z-index: 1000;
}

.auth-toggle-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 98, 198, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-page {
        flex-direction: column;
    }
    
    .auth-visual {
        min-height: 50vh;
        padding: 2rem 1.5rem;
    }
    
    .auth-quote-text {
        font-size: 1.5rem;
    }
    
    .auth-echo-preview {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .auth-echo-item {
        min-width: 280px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .auth-content {
        padding: 1.5rem 1rem;
    }
    
    .auth-logo-link {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .auth-logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .auth-logo-text {
        font-size: 2rem;
    }
    
    .auth-visual {
        padding: 1.5rem 1rem;
        order: -1;
        min-height: 40vh;
    }
    
    .auth-quote-text {
        font-size: 1.25rem;
    }
    
    .auth-examples {
        display: none;
    }
    
    .auth-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .auth-stat {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .auth-stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-content-inner {
        max-width: 100%;
    }
    
    .auth-visual {
        min-height: 35vh;
        padding: 1rem 0.75rem;
    }
    
    .auth-quote-text {
        font-size: 1.1rem;
    }
    
    .auth-globe-inner {
        width: 80px;
        height: 80px;
    }
    
    .auth-pulse-1 {
        width: 50px;
        height: 50px;
    }
    
    .auth-pulse-2 {
        width: 65px;
        height: 65px;
    }
    
    .auth-pulse-3 {
        width: 80px;
        height: 80px;
    }
    
    .auth-globe-center {
        width: 32px;
        height: 32px;
    }
}

/* États de masquage pour mobile */
@media (max-width: 768px) {
    .auth-visual.auth-hidden {
        display: none;
    }
    
    .auth-page.auth-visual-active .auth-content {
        display: none;
    }
    
    .auth-page.auth-visual-active .auth-visual {
        display: flex;
        min-height: 100vh;
        order: 0;
    }
}

/* Animations de performance */
.auth-page * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .auth-page,
    .auth-header,
    .auth-main,
    .auth-footer,
    .auth-quote-section,
    .auth-examples,
    .auth-echo-item,
    .auth-globe {
        animation: none;
        transition: none;
    }
    
    .auth-pattern-dot,
    .auth-pattern-line,
    .auth-globe-pulse {
        animation: none;
    }
}

/* Focus visible pour les utilisateurs au clavier */
.auth-logo-link:focus-visible,
.auth-toggle-mobile:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}