/* Styles pour la page Connexion - Cohérent avec les autres pages */

/* Layout principal */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(0, 8, 20, 0.95) 0%, 
        rgba(10, 10, 26, 0.98) 50%, 
        rgba(0, 8, 20, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container principal */
.auth-container {
    padding: 100px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Effet d'arrière-plan animé */
.auth-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 400px 300px at 30% 20%, rgba(0, 168, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 70% 80%, rgba(138, 43, 226, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: backgroundFloat 15s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Wrapper principal avec grille pour la présentation */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    width: 100%;
}

/* Carte d'authentification */
.auth-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 15px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    z-index: 1;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.6;
}

/* Section d'information sur la guilde */
.guild-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 15px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.guild-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-purple), transparent);
    opacity: 0.6;
}

/* Titres */
.auth-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--color-accent), var(--color-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: var(--font-text);
}

.guild-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-purple);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--color-purple), var(--color-cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guild-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Bouton Discord */
.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: var(--font-title);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.discord-link:hover {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

/* Formulaires */
.auth-form {
    width: 100%;
}

.auth-form h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Groupes d'inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-text);
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: var(--color-white);
    font-family: var(--font-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 2px rgba(0, 168, 255, 0.2),
        0 0 15px rgba(0, 168, 255, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Bouton d'authentification */
.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-cyan));
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: var(--color-bg);
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.auth-btn:hover {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.4);
}

/* Switch entre connexion/inscription */
.auth-switch {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: var(--color-cyan);
}

/* Messages d'erreur/succès */
.auth-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-text);
}

.auth-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff6b6b;
}

.auth-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-container {
        padding: 120px 1rem 2rem;
    }
    
    .auth-card,
    .guild-info {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .guild-title {
        font-size: 1.5rem;
    }
    
    .discord-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 1.8rem;
    }
    
    .guild-title {
        font-size: 1.3rem;
    }
    
    .auth-card,
    .guild-info {
        padding: 1.5rem 1rem;
    }
}