/* Styles pour les modales de connexion/inscription du module membres */

.membres-auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.membres-auth-modal.membres-auth-modal-open {
    display: flex;
    opacity: 1;
}

.membres-auth-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

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

.membres-auth-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.membres-auth-close-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

#members-login-form h3,
#members-register-form h3 {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a2540;
    text-align: center;
}

.membres-form-group {
    margin-bottom: 18px;
}

.membres-input-small {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: 'Rubik', sans-serif;
}

.membres-input-small:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.membres-password-wrapper-small {
    position: relative;
}

.membres-password-wrapper-small .membres-input-small {
    padding-right: 45px;
}

.membres-toggle-password-small {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #94a3b8;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    width: 24px;
    height: 24px;
}

.membres-toggle-password-small:hover {
    color: #0066cc;
}

.membres-toggle-password-small i {
    pointer-events: none;
}

.membres-auth-forgot {
    margin: -5px 0 15px 0;
    text-align: right;
}

.membres-auth-forgot a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.membres-auth-forgot a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.membres-btn-small {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Rubik', sans-serif;
}

.membres-btn-primary-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.membres-btn-primary-small:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.membres-btn-primary-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.membres-auth-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.membres-auth-message-hidden {
    display: none;
}

.membres-auth-message-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.membres-auth-message-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.membres-social-login {
    margin-top: 20px;
}

.membres-btn-social {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 10px;
}

.membres-btn-discord {
    background: #5865F2;
}

.membres-btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.membres-btn-twitch {
    background: #9146FF;
}

.membres-btn-twitch:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(145, 70, 255, 0.3);
}

.membres-discord-icon,
.membres-twitch-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.membres-social-hint {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    margin: 5px 0 0 0;
}

.membres-auth-toggle {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

.membres-auth-toggle-btn {
    background: none;
    border: none;
    color: #0066cc;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.membres-auth-toggle-btn:hover {
    color: #0052a3;
}

.membres-recaptcha-placeholder {
    margin-top: 15px;
}

/* Dark mode support */
body.dark-mode .membres-auth-modal-content {
    background: #0b1725;
    color: #e2e8f0;
}

body.dark-mode #members-login-form h3,
body.dark-mode #members-register-form h3 {
    color: #f1f5f9;
}

body.dark-mode .membres-input-small {
    background: #1a2332;
    border-color: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .membres-input-small:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

body.dark-mode .membres-auth-close-btn {
    color: #94a3b8;
}

body.dark-mode .membres-auth-close-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .membres-toggle-password-small {
    color: #64748b;
}

body.dark-mode .membres-toggle-password-small:hover {
    color: #818cf8;
}

body.dark-mode .membres-auth-forgot a {
    color: #818cf8;
}

body.dark-mode .membres-auth-forgot a:hover {
    color: #a5b4fc;
}

body.dark-mode .membres-auth-toggle {
    color: #94a3b8;
}

body.dark-mode .membres-auth-toggle-btn {
    color: #818cf8;
}

body.dark-mode .membres-auth-toggle-btn:hover {
    color: #a5b4fc;
}

body.dark-mode .membres-social-hint {
    color: #64748b;
}

body.dark-mode .membres-toggle-password-small:focus {
    outline-color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .membres-auth-modal-content {
        padding: 30px 25px;
        max-width: 95%;
    }

    #members-login-form h3,
    #members-register-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .membres-input-small {
        padding: 10px 12px;
        font-size: 14px;
    }

    .membres-btn-small {
        padding: 11px 18px;
        font-size: 15px;
    }
}
